Skip to main content

#Flow156 人がディスカッション中

I just created a new flow that is a after-save record triggered flow. The flow is triggered when a new Opportunity is created. We create Opportunities 3 ways, manually, through our 3rd party donor portal, and through our app. The manually created Opportunities and the Donor Portal created Opportunities are triggering the Flow and it works correctly. But none of the Opportunities created by Zapier have triggered the Flow. Is there something in the way Zapier creates records that would cause the Flow not to recognize a new Opportunity? There is an entry criteria, but several Opportunities met it and did not trigger the flow (from Zapier only).  

 

#Flow

5 件の回答
  1. 昨日、22:39

    Maybe Zapier creates and then updates the Opportunity? It might come in from Zapier at $0, then get immediately updated? Maybe try the following in a sandbox or dev org. Three possible ideas: 

    1. Can you change to update the flow to trigger when a record is created or updated? Or would that not work for your circumstance? 

    2. If you do change it to created or updated, you could select to have it run only when a record is updated to meet the condition requirements, and then make sure the requirements are even more specific. 

    3. OR, instead of doing those two things, try to remove an entry criteria at a time to see if one of the criteria seems to be causing this to happen. 

0/9000

These are the errors I am getting while completing module:

  1. Create an Agent-Ready Flow

 

Flow Name:Cancel Contact's Booking 

 

Get Updated Booking Details

The field "{" for the object "01Ig8000004VX10" doesn't exist.

The field "rowIndex" for the object "01Ig8000004VX10" doesn't exist.

The field "569c5e2c-c2ac-4975-bd1e-fdf3b32185ac" for the object "01Ig8000004VX10" doesn't exist.

The field "}" for the object "01Ig8000004VX10" doesn't exist.

The element has an invalid reference to "Booking__c.{".

The element has an invalid reference to "Booking__c.rowIndex".

The element has an invalid reference to "Booking__c.569c5e2c-c2ac-4975-bd1e-fdf3b32185ac".

The element has an invalid reference to "Booking__c.}". 

 

#Trailhead Challenges  #Flow

1 件の回答
  1. Eric Burté (DEVOTEAM) Forum Ambassador
    昨日、20:34

    Hello @Mugdha Mohindra, It seems that the issue comes from the Get Record element. Could you please provide us with a screenshot of your Get Updated Booking Details element detailed pane ?.. Make sure your filter is correctly set up, and the whole element configuration too. Eric

0/9000

Is it possible to have an email sent from Salesforce that is created from an email template in Salesforce that is sent with one or more attachments to that email. If so, where do the attachments have to live? in Salesforce Files?    Thank you!    

5 件の回答
  1. 7月14日 0:15

    Yes — as of the Spring '25 release, the standard Flow core action "Send Email" (not the older Email Alert action) supports attachments directly. It added an Attachment ID input parameter that accepts a ContentVersion Id (Salesforce Files), a classic Attachment Id, or a Document Id — so your files can live as Salesforce Files, classic Notes & Attachments, or a Document, and you just pass the record Id into that parameter. 

    You can also set the Email Template Id on that same Send Email action, so the flow renders the template as the body and attaches the file(s) in the same step. 

    One limit worth knowing: total email size, including attachments, is capped at 35 MB. 

    Official doc: help.salesforce.com, article id platform.flow_ref_elements_actions_sendemail.htm ("Send Email Action"). 

    Assumption: I'm assuming you're on Spring '25 or later, since attachment support on the core Send Email action is a fairly recent addition — before that release, the standard action couldn't attach files at all, and people had to fall back to an invocable Apex action using Messaging.SingleEmailMessage with setEntityAttachments()/setFileAttachments() instead. If you're on an older release, let me know and I can point you to that Apex-based workaround. 

0/9000

I have written a flow that calculates a new value and stores it back on that same record. I would like to trigger this from a button and have that working, but not quite like I want. The flow works correctly, but after it runs, I get a full screen message saying "Your Flow Finished" (see below). There is no way that I have found to get rid of this. I don't mind the message but need a "Continue" button or something to take the user back to their original record page. I've tried all the button options and they all behave exactly the same. Is this just the way it is, or is there a way to get past this. My preference would be a small pop-up box with a button to close that pop-up and take the user back to the original record. Is this possible?   

 

Salesforce button not opening flow in new window

 

 

 

#Flow  #Custom Buttons

1 件の回答
0/9000

Hi Everyone,

 

We would like to automatically add Leads to a specific Cadence if that Lead came in via certain Campaigns.  I have built multiple Flows but, given my limited knowledge of Cadences, I was wondering if anyone has done something like this in the past and can provide any guidance (documentation, Sample Flows, etc.) on how to implement this.  Any assistance is greatly appreciated.

 

Thanks,

 

Mark

2 件の回答
  1. 9月15日 21:48

    I did this with my org and it worked perfectly until one of the record owners quit and their user became inactive. When we attempted to unqualify the leads so they could be added to the cadence, there was an error and leads could not be unqualified. Does anyone have a solution to this?  

    Note- We do not use a lead queue, our lead assignment is either manual or automated via zapier.  

    Thanks 

0/9000
6 件のコメント
0/9000

I have a screen flow that I'd like users to be able to access two different ways: from a field on the Opportunity Product object, as well as a Detail Page Button. What's paramount is where the screen flow returns at its end: I need it to end on a view of the product related list on the related Opportunity record. I got it to work successfully on the field version. Here's my formula field:  

 

HYPERLINK("/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product" &"?recordId=" &Id &"&retURL=/lightning/r/Opportunity/" & OpportunityId & "/related/OpportunityLineItems/view", 

"CLONE", 

"_self" 

) 

 

But for the life of me, I can't get the Button version of the URL to go back to the Product related list. I figured out that I can't reference the Opportunity Id via merge field in this scenario, so I created a formula field called Opportunity_Id__c, which just utilizes a CASESAFEID version of the Opportunity Id.  

 

In order to save time, here is a list of the various versions I've tried that DON'T work:  

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id}&retURL=/{!OpportunityLineItem.Id

} 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id

}&retURL=/lightning/r/Opportunity/&OpportunityId&/related/OpportunityLineItems/view 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id

}&retURL=/lightning/r/Opportunity/OpportunityLineItem.Opportunity_Id__c/related/OpportunityLineItems/view 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id}&retURL=/lightning/r/Opportunity/{!Opportunity.Id

}/related/OpportunityLineItems/view 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id

}&retURL=/lightning/r/Opportunity/{!OpportunityLineItem.Opportunity_Id__c}/related/OpportunityLineItems/view 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id

}&retURL=/lightning/r/Opportunity/&OpportunityLineItem.Opportunity_Id__c&/related/OpportunityLineItems/view 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id}&retURL=/lightning/r/OpportunityLineItem.Id

} 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id

}&retURL=/lightning/r/{!OpportunityLineItem.Opportunity_Id__c}/related/OpportunityLineItems/view 

 

/flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

OpportunityLineItem.Id

}&retURL=/lightning/r/&OpportunityLineItem.Opportunity_Id__c&/related/OpportunityLineItems/view 

 

 

Anyone have any thoughts, tips, or suggestions?  

 

#Flow  #Flows  #Screen Flow  #Formulas

5 件の回答
  1. 9月15日 1:26

    @Craig Munster

     

     

    Ah, that's the missing piece — and you're right, I was wrong to steer you off your formula field. On an Opportunity Product button the native OpportunityId genuinely isn't exposed in the merge-field picker (annoying known quirk). Your Opportunity_Id__c CASESAFEID field is exactly the right workaround, so keep it — custom fields DO show up under Insert Field. Just reference that one instead of OpportunityId: 

     

    /flow/Opportunity_Product_Screen_Flow_Clone_Opportunity_Product?recordId={!

    OpportunityLineItem.Id

    }&retURL=/lightning/r/Opportunity/{!OpportunityLineItem.Opportunity_Id__c}/related/OpportunityLineItems/view 

     

    That sends them back to the Products related list on the parent Opp. Sorry for the runaround getting there! 

     

    If this helps, please mark it as the Best Answer so it helps the next person — thanks 🙂

0/9000

Hello, 

I am trying to send a notification to slack channel through salesforce flow.

But I am getting this error

This error occurred when the slackPostMessage action tried

to execute the Slack API method: chat.postMessage.

Error: channel_not_found.

The slack channel exists. 

I have provided the channel id.

What am I doing wrong?

My username in salesforce is different than my username in slack, is that why?

or do I need to invite bot to the channel?How to do that?

 

Here is the screenshot of the action in the flow

 

Send message to slack channel through the flow

 

#Sales Cloud  #Flows  #Slack Channel  #Slack

7 件の回答
0/9000

In the last few months we've noticed that users have been running into issues with flows that reassign record ownership or share record access. For example, we have a record-triggered flow that assigns certain types of cases to a queue. However the flow fails to run because when the case is assigned to the queue the users looses access to it, which is expected. My understanding is that because the flow runs in system context it should be able to update ownership to the queue and save it, and the creator would loose edit access to the case afterwards. We have not made any changes to this process, but this is not working as expected anymore. The only way I have found to resolve this is by granting the user modify all access to cases. We've experienced similar things in other orgs where we have automations that are updating record owners or are triggered when the record owner changes. It's possible I am missing something, but it seems like record-triggered flows are no longer running in system context. Has anyone else noticed this behavior recently? 

 

#Flow

4 件の回答
  1. Steven Trumble (Strum Consulting) Forum Ambassador
    9月14日 0:51
0/9000

Hi Everyone,

I have a question regarding sending dynamic emails from a Flow using Email Templates.

In my current Flow, I have configured dynamic emails using an Email Template for Leads, and it is working as expected. However, after Lead conversion, I need to send an email either to the Opportunity Owner or to an email address stored in a custom field on the Opportunity.

Is it possible to send dynamic emails using an Email Template for the Opportunity object directly from Flow, without using Apex?

If anyone has implemented this solution or knows the best approach, please share your insights.

Thanks in advance! 😊 

 

#Salesforce Developer  #Trailhead Challenges  #Trailhead  #Sales Cloud  #Flow  #Apex

1 件の回答
  1. 9月11日 18:24

    @durgam santhosh

     

     

    Yes - the native no-Apex route is an Email Alert (the core 'Send Email' Flow action won't render a template's merge fields). Create an Email Alert on Opportunity (Setup > Email Alerts) that uses your Opportunity Lightning template, then call it from your record-triggered Flow as an Action - the alert sets the triggering Opportunity as the Related To, so all your Opportunity merge fields resolve. 

     

    For recipients you can pick Opportunity Owner directly; to send to that custom email field it has to be an Email-type field, then it shows up under Recipient Type 'Email Field'. 

     

    If this helps, please mark it as the Best Answer so it helps the next person - thanks!

0/9000