Trying to use External Services to process a list of Objects.
YAML JSON attribute looks like below,
"FirstName": {
"type": "string",
"description": "FirstName is the firstname to use for creating the account. @gotag: valid:\"required\""
},
Generated corresponding Apex Wrapper class (Dynamic Apex) has below,
// [PROPERTY] FirstName
// FirstName is the firstname to use for creating the account. @gotag: valid:"required"
@AuraEnabled
global String FirstName {get; set{ this.FirstName = value; this.FirstName_set = true; }}
global Boolean FirstName_set {get; set;}
JSON body sent by flow has below,
{ "FirstName_set" : true, "FirstName" : "Test" }
Endpoint is throwing error as it does not expect 'FirstName_set' in the request body. I wonder why Salesforce is adding this attribute? Is there a way to remove it?
Thanks!