I'm not sure why the multiple lines of text would be required for the AD account creation, but if that is what is working for you, you could put the SLT controls on the form, but in the workflow set a variable that is a MLT to the value of the firstname SLT control on the form. Then use the Multi line variable in the AD creation.
Thanks Andrew . I tried your suggestion and it didn't work . For some reason being able to set the MLT to plain text when adding the list item works but setting SLT to MLT with within the workflow does not work .
That is so weird, I can't make sense of it, but I believe you wholeheartedly. Can you output the two methods using log to history to see if there is any data different? I guess the data is the same but for some reason the datatypes are different.
What's the error you're getting?
error - Failed to create Active Directory account. An invalid directory pathname was passed .
Two methods work fine for me .
(1) If I hard code the values
(2) If I were to switch the fields from SLT to MLT and change the data type to 'plain text' .
It appears as if the SLT has hiddenn/escape characters that is throwing it off .
Andrew, when I output the log to history, SLT field is blank while the MLT field is not .
Guys I think I found my issue . I created two forms one to create a user and one to edit user details using the same form variables . I'm hiding the panel (create/edit user) base on user selection. Once I created different form variables for the add user form and the edit user form the workflow worked . So am keeping my fingers crossed for now . in the past whenever I created the MLT to test I gave it a different name to the SLT thus the reason why it always works .
Andrew, you pointed me in the right direction by asking me to log the two variables .
Thanks guys !!!