Salesforce Integration: Unable to assign ID.

  • azimuthcap
    Asked on May 9, 2024 at 11:50 AM

    Hi,

    I am trying to create a task from jotform but I am unable to assign the id. When I look at the action log, I see the error:

     "message": "Assigned To ID: id value of incorrect type: Alexis LastName",
    "errorCode": "MALFORMED_ID",
    "fields": [
    "OwnerId"
    ]

    I'm sure I am not putting it in the correct format, but I have tried several things and have been unsuccessful. What format should it be in? The name looks like this when I create the task myself:

    Salesforce Integration: Unable to assign ID Screenshot 20

  • Bilal JotForm Support
    Replied on May 9, 2024 at 2:48 PM

    Hi Jeff, 

    Thanks for reaching out to Jotform Support. I'm sorry for any confusion but can you tell us which ID you're referring to when creating the task? Also, are you trying to create a Task using an API or through Jotform itself?

    Once we hear back from, we'll be able to move forward with a solution.

  • azimuthcap
    Replied on May 9, 2024 at 3:23 PM

    Hi Bilal,

    I should of clarified, I am trying to launch a task in Salesforce from jotform itself. I am struggling to assign the task to anyone else but whoever launches the form. I have tried to assign it through the "Assigned To ID:" and I have tried several different ids the person's name, email, and alias but nothing has worked.

    Salesforce Integration: Unable to assign ID Screenshot 20

  • Princess JotForm Support
    Replied on May 9, 2024 at 4:58 PM

    Hi Jeff,

    Thanks for getting back to us. When getting the following error message: "MALFORMED_ID", "id value of incorrect type", this means that an ID being sent to Salesforce is not the correct type that Salesforce is expecting. When I cloned and checked your form, I noted that the issue is within the "assigned to:" short text field. Can you please remove the default value from the field and try again? You would also need to map the short text field correctly from the Jotform to Salesforce when you are integrating.

    Salesforce Integration: Unable to assign ID Screenshot 20

    You may also want to check out this guide on How to Integrate Jotform with Salesforce for more detailed information.

    Give it a try and let us know how it goes.

  • azimuthcap
    Replied on May 10, 2024 at 11:21 AM

    Hi Princess,

    Yes, I am aware that the value in the "assigned to" is incorrect. My question is what should the actual format be, because I have tried several different ways and had no success. The value that is in there was just the last test that I tried, until I can figure out what the format of the "Owner Id." When I don't assign the id it goes to whoever started the process, and I want someone to be able to assign the task to someone else.

    This maybe a question for salesforce rather than jotform.

    Thanks.


  • Kyle JotForm Support
    Replied on May 10, 2024 at 12:03 PM

    Hi Jeff,

    Thanks for getting back to us. In Salesforce, each ID is either a 15-character case-sensitive string or an 18-character case-insensitive string. Each one of the 15 characters can be a lowercase letter (a-z), an uppercase letter (A-Z), or a number (0–9).

    When you’re trying to assign a task in Salesforce, you need to use the unique ID of the user to whom you want to assign the task. This ID is not the person’s name, email, or alias, but a unique identifier generated by Salesforce.

    If you're unsure of a user’s ID, you can find it in Salesforce. When you view a user’s profile, the URL will end with the user’s ID.

    Give it a try, and let us know how it goes.

  • azimuthcap
    Replied on May 13, 2024 at 1:49 PM

    Hi Kyle,

    That worked perfectly. Thank you!

 
Your Answer