Adding Cross-object formula to 'Custom Attributes' in Connected app
|Knowledge Article Number||000233050|
When we try to add formula field with simple formula to the 'Custom Attributes' to the Connected app it gets saved without any issue. But, if we are using a Cross-object formula then we are not able to save the same and we get the below error:
Sample error messages:
Error: Invalid formula: Error in referenced formula $User.testformula__c, Field Profile.Name does not exist. Check spelling..
Error: Invalid formula: Error in referenced formula $User.Account_Name__c, Field Contact.Account.Name does not exist. Check spelling..
This is a functionality which is working as designed. As of now Cross-object formula is not supported in the 'Custom Attributes' of Connected app.
As a workaround you can use Custom Connected App Handler and customize the behavior of a connected app with Apex with the help of ConnectedAppPlugin.