0

I have created flow and in this flow screen I have phone field. enter image description here

however, I cannot assign the value from this field to invocable variable. I do not see "Phone" in the dropdown list in invoacble variable.

enter image description here

In Apex class I have

@InvocableVariable
public String mobilephone;
@InvocableVariable
public String homephone;

For Phone field in screen components values :

enter image description here

What am I doing wrong here? I tried assigning Text data type variable in "Store Output Value" - Value feild.. and map that variable to Invocable variable. but I get null value everytime.

  • got a solution for this? – Thomas Dec 30 '19 at 16:38
  • @Thomas I ended up using Text field for phone number with REGEX in input validation. However if you don't worry about international phone format, then in phone field in flow you need to create Text type variable resource in flow and assign it to Store Output Values --> Value. And use that text variable to bind to your invocable variable. – Ghosty Apr 17 at 2:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.