function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shawn Low 37Shawn Low 37 

Trying to create a Flow that will do multiple things, but getting an error.

I need a solution for this Business Process.
1. User searches for an Opportunity. They would like to ask that this Opportunity (We call Opps Applications) be transfered to them (Requires a Manager Approval).
2. They click a Button called "Request Application Reassignment" (Lightning Action).
3. Lightniing Action calls a "Flow"
4. Flow opens a screen with two 92) fields.
4a. Application Reassignment Reason (Picklist. Already Created on the Object)
4b. Application Reassignment Comments (Open text field)
Both of these fields will need to update the Record with the data that the User entered in the Screen.
5. The Flow now updates the record (Oppty) and launches an Approval process (already created).
6. Flow stops.
The Approval Process locks the record and sends an email notification to the Manger that they need to approve or decline this request.
7. If they approve the request, the file is Unlocked, and the Manager will update the Application (Opportunity) Owner and update two (2) fields on the record.
8. The new Application (Opportunity) Owner now has access to complete the processing of the order.
This should be so simple but I keep getting an error with the Flow. Apparently the Flow is not Grabbing the record that the is being Requested to be Reassigned.
Help please??
Thank you,
Shawn
Deepak GulianDeepak Gulian
Hi Shawn,

Can you please show me your Lightning Component(JS controller) code where you are setting up the flow variables?

Thanks
DG
Shawn Low 37Shawn Low 37
Good Morning Deepak,
Thank you for helping.
Im going to upload several pictures so I apologize in advance:
User-added image
1. Find Application (Opportunity)
User-added image
2. Request for Application (Opportunity) to be Reassigned:
User-added image
3. Application (Opportunity) Reassignment (Update Record):
User-added image
4. "Fire Off" or Start, the Apptoval Process:
User-added image

Thansk Deepak,
Shawn
 
Deepak GulianDeepak Gulian

Hi Shawn,

Can you please try renaming your variable from "RecordId" to "recordId" 

Type: text
Input/Output Only: input

Let me know if it works

Thanks
DG

Shawn Low 37Shawn Low 37
So here is what I did.
1. I renamed the variable as suggested:
User-added image
2. I checked to make sure it was also changed on the "Get Record" step:
User-added image
3. I re-ran the Flow and got this error message:
User-added image
Shawn Low 37Shawn Low 37
I went back and re-created everything (Flow, Approval Process & Lightning Action) and I have it working almost perfectly now.
Thank you for the help and direction.
Shawn
Deepak GulianDeepak Gulian
Great :)