variable with country drop down in catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2017 09:05 PM
Hello experts,
I have a requirement to add country field as drop down in catalog item and I have 2 more variables, Business phone and mobile number. Business phone and mobile numbers should allow only 10 digits.
once the request is completed, mobile number should be updated as country code + mobile number.
for example
country is India and mobile number 1234567890
then output should be +911234567890
can anyone suggest me on this.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2017 09:08 PM
Hi Prasa,
Where are you looking to store the concatenation of the country code and mobile number?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2017 09:49 PM
in catalog item request page.
country - drop down - visible
mobile number - visible
mobile phone - concatenation - invisible on request page - will use this variable in entire workflow to store in AD.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 07:20 AM
While I'm not familiar with any OOB country table, you can make your own choice list with these options and simply use that.
To maintain the variable throughout the workflow, take a look at using the workflow.scratchpad object. You can do a Run Script activity after your workflow gets started to maintain the value of your mobile phone number and use it throughout.
(Untested) Example:
workflow.scratchpad.mobile_phone = current.variables.country_code + current.variables.mobile_number;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-20-2017 11:35 PM
Hi Prasa,
You need to maintain this data in some lookup table and populate it while selecting a country code and phone number. You can add a new field on the Countries table to maintain the country code. When the country and phone number is selected or changed, you can trigger an ajax call to countries table for fetching the country code and same should be concatenated with your phone number.
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response