You need to sign in to do that
Don't have an account?

StringException: Invalid id: 0013E00000iMZjNQAW
Hi @all,
I hope someone can help me. I want to create a case ans assign a Id to a relationship.
In error I get -> StringException: Invalid id: 0013E00000iMZjNQAW
I convert a String to a Id with this code:
newCatererId is a String with the Id.
I havre tried to convert it before I assign it to AccountId. It does not working too.
I hope someone can help me
Lisa
I hope someone can help me. I want to create a case ans assign a Id to a relationship.
In error I get -> StringException: Invalid id: 0013E00000iMZjNQAW
I convert a String to a Id with this code:
c.AccountId = Id.valueOf(newCatererId);At this point I got the error.
newCatererId is a String with the Id.
I havre tried to convert it before I assign it to AccountId. It does not working too.
I hope someone can help me
Lisa
I have tried the below example. But it's working for me.
Can you post part of the code to verify?
You can simply do this
Please mark this as the correct answer if it helped you.