In the Input dialog multiple choice selection, how to proceed to only get 1 word (that is linked with the whole text) instead of having the whole text?

Hi,

I’ve created 3 variable that contains full text body (that will be inserted in the body of email depending of what the user choose in the multiple choice selection.

I want to know if its possible to only put the words in the multiple choice input dialog instead of the full text (like in the below example) ?

What you need to know is the following:
The value entered as strbody in the input dialog will be inserted in the body of the email (see below)

image

Basically, it works at that moment, but I want to avoid to put the whole text in the input dialog multiple choice selection.

Thanks in advance to advice how to proceed to only get 1 word (that is linked with the whole text) instead of having the whole text in the multiple choice selection.

which words do you need in the input dialog?

lets say as example the different words are

TEST1
TEST2
TEST3

and each of the words are linked with different bodytext

@mce

Create one dictionary variable and add keywords as Name and it’s full body as Value. So that based on keyword selection you can fetch corresponding value(body).

@mce Yes, Is possible to keep only the words in the input dialog. Try this

in the input options array field {“OptionA;OptionB;OptionC”} follow this format and you replace the words within in the quotes that you want to mention

I Think this should be the solution but how to proceed ? I have the below error message when tring to run my process. What did I do wrong?


Thanks in advance for your precious help

@mce

Dict variable should be of type System.Collections.Generic.Dictionary but you used IDictionary here.

Here, Error refers to Dict variable has not been initialized. Pass the default as below for Dict variable.

    New Dictionary(Of String, String)

I have changed the variable type to : System.collections.generic.dictionary

image

and pass the default as below for Dict variable:

New Dictionary(Of String, String)

I’ve got now another new error message (see below=)

What should I do to resolve this error message?

Thanks in advance for the help.
Rgds,
Maic

@mce

You should assign Input Dialog activity output to String variable but you are trying to assign it to dict variable because of that you are getting that error.

I used another solution by using “3 Else If condition” and it works now.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.