Skip to main content
Diego Torres (AT Vault) 님이 #Flow에 질문했습니다

Hello, I have created a field called "Opportunity Contact Email" and I want to create a flow that will grab the email from an Opportunity's Contact Role, and store it in that custom field I created. In the flow, i added a get records component that filters the Opportunirty Contact Role records that have the same Opportunity Id as my Opportunity. And then, I added an update records component that will store the email from the Opportunity Contart Role into my custom field (Opportunity Contact Email) in the opportunity. (PICTURE OF THE FLOW BELOW) 

 

Opportunity Related Contact

My question is, in the case that there are several Contact Role, is there a way for the flow to only store the email from the PRIMARY Contact Role? I tried adding a decision before the update records component, but it is coming up with this error:

 

flow error.PNG

 @Lightning Flow Discussions

답변 4개
  1. 2023년 3월 2일 오후 3:25

    Can you clarify which object this flow triggers on, and if there's any special criteria that need to be met? 

     

    Also, just to confirm, the Is Primary checkbox is a backend field that automatically gets set.

     

    When you add Contact Roles, you have the option to select who the Primary Contact is

     

    Can you clarify which object this flow triggers on, and if there's any special criteria that need to be met?

    In this example Dwayne Johnson would be my primary contact and the IsPrimary checkbox would be checked on this record.  If you then try and add additional contact roles down the road you won't be able to select a Primary Contact since one has already been selected. (I'm not sure if this is the error you were encountering) Here I'm adding Chris Jericho as a contact role, but since there is already a Primary Contact, I can't specify Chris as the new one

    Screenshot 2023-03-02 092141.png

    In order to do that, you would need to Edit the Contact Roles and then change the Primary Contact

    Screenshot 2023-03-02 092300.png