Open matthew-roark opened 6 years ago
This is defintely a bug. I also tested this issue with same results: The #AnyApiName# does not output the element value within the row. Using anything just outputs the Text including the hashtags..
i.e. {"entityApiName":"Opportunity", "defaultFieldValues":{"AccountID" : "#Contactr.Account.id#"}} will output literal "#Contactr.Account.id#" instead of 0011500001bEDtXAAW
likewise, i.e. {"entityApiName":"MyOpportunityTeamc", "defaultFieldValues":{"Phone" : "#Contactr.Phone#"}} will output literal "#Contact__r.Phone#" instead of 978-123-4567
The #parentRecordId# works and #id# works as expected.
When creating an action on a custom list, we are allowed to provide some custom event parameters, which are supposed to be notated using a "#fieldname#' notation. This is detailed on page 18 of the user guide, which also indicates the field needs to be setup for the list.
However, this does not appear to be working. In my use case, I have created a custom 'Contacts' list, filtered to only show Contacts of a certain record type. I am trying to replicate the default behavior for address in Salesforce, which is that the mailing address for the Contact defaults to the shipping address of the related Account.
What I have for a payload is:
{ "entityApiName" : "Contact", "defaultFieldValues" : {"AccountId" : "#parentrecordId#", "MailingAddress":"#Account.ShippingAddress#","MailingCity":"#Account.ShippingCity#","MailingState":"#Account.ShippingState#","MailingCountry":"#Account.ShippingCountry#" } }
What I get as an output is shown in the screenshot linked below, which shows the values merged as the actual hashtagged values above, not the referenced fields. Can someone help me to understand what is going on?