Error: "Cannot convert to an integer in argument 3 of a call to Prompt."

Version 1

    Details

     

    You have a Quick Action which prompts the user for information.
    This Quick Action worked fine before 2015.2. 
    After 2015.2 it displays an error: 

    This business object could not be saved.
    Contact your system administrator.
     Hide details <<
    Copy to clipboard
    Cannot convert to an integer in argument 3 of a call to Prompt.



     


    Resolution

     

    The Quick Action prompts for a value from the user with an expression like:

    $(Prompt("Select Employee Name", "Employees", ""))

    The parameters to the prompt function are:

    Prompt(message, pickList, fieldAreaWidth, fieldAreaHeight, password, required, defaultValue)

    The 3rd parameter is the width of the prompt. 
    The 3rd parameter specified in the Quick Action is an empty string. 
    The implicit conversions of strings to integers has been tightened up in 2015.2. 

    Remove the 3rd parameter in the call to Prompt(): 

    $(Prompt("Select Employee Name", "Employees"))