Contact Us

February 21, 2024

May 13, 2026 1:27 pm

Resolving required field missing errors in Agentforce champion flows

Share with

Understanding the Error

The error message indicates that the flow is trying to create a record, but a required field, Contact__c, is missing. This suggests that the issue lies in the way the flow is trying to find and store the UnifiedLink records.

Looking at the error details, we can see that the flow is trying to find all UnifiedLink records where the SourceRecordId__c field equals the ContactRecordID variable. However, the ContactRecordID variable is null, which means that the flow is not able to find any matching records.

Root Cause of the Issue

The root cause of this issue is that the ContactRecordID variable is not being properly set before being used to find the UnifiedLink records. This could be due to a number of reasons, such as the variable not being initialized, or the value not being correctly assigned.

Fixing the Issue

To fix this issue, we need to ensure that the ContactRecordID variable is properly set before using it to find the UnifiedLink records. We can do this by adding a step to the flow to initialize the variable and assign it the correct value.

Flow Initialization

var ContactRecordID = '003xxxxxxxxxxxxxxx';

Once we have initialized the variable, we can use it to find the UnifiedLink records. We should also add some error handling to ensure that the flow does not fail if no records are found.

Heads up: Make sure to replace the placeholder value with the actual Contact ID.

Checklist for Resolving the Issue

  • Initialize the ContactRecordID variable and assign it the correct value.
  • Use the ContactRecordID variable to find the UnifiedLink records.
  • Add error handling to ensure that the flow does not fail if no records are found.
  • Verify that the flow is working as expected by testing it with different inputs.
  • Make sure to replace any placeholder values with the actual values.

Frequently Asked Questions

What is the Unified Link?

The Unified Link is a feature in Agentforce that allows you to link multiple records together.

How do I initialize the ContactRecordID variable?

You can initialize the ContactRecordID variable by adding a step to the flow to assign it the correct value.

What happens if no records are found?

If no records are found, the flow will fail with a REQUIRED_FIELD_MISSING error. You can add error handling to ensure that the flow does not fail in this case.

How do I test the flow?

You can test the flow by running it with different inputs and verifying that it is working as expected.

Genetrix Technology · Salesforce Marketing Cloud Partner

Need help shipping this in production?

Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.

Get in Touch with Genetrix →

Blogs for the

Business-Savvy!​

Let’s Connect

A 30 min no cost strategy session
with cloud support expert

Let’s Connect

A 30 min no cost strategy session
with cloud support expert