• Zavoq
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

I am trying to figure out how to write a lead assignment rule so that all leads that come in from a Web-to-Lead form automatically get assigned to a Lead Queue (in my case Lead-Open Queue.)  Can anyone point me in the right direction?

 

Thanks

 

cg

  • November 13, 2009
  • Like
  • 0
I am trying to use the 'Launch Flow in Modal' component in a Lightning Community. I'm placing this button on a Contact record detail page in the Community, and I want to pass the Contact Id to the flow as the input variable 'recordId'.

The options for the component include a field called Flow Input Variables, and the 'info' tooltip for that field gives a syntax example for a JSON string to set the variable that looks like this:

User-added image

I can't figure out how to get the record Id of the current contact from the contact detail page inserted into the flow.

First I tried
 
[{"name": "recordId", "type": "String", "value": {!Record.Id}}]

but that throws this error:
SyntaxError: JSON.parse: unexpected character at line 1 column 51 of the JSON data

I figured the brackets around the variable were the problem so I tried escaping them with backslashes:
 
[{"name": "recordId", "type": "String", "value": \{!Record.Id\}}]

but got the same error.

What's the right way to reference the Id of the current record from a community record detail page to pass to a flow?
  • August 31, 2020
  • Like
  • 1