Facing an issue with add comment api

Hi @Sam,

I tried to call “Add Case comment” api through button trigger when posting underwriter comment. I have give title value as string, but it is automatically taken task-owner details. Don’t understand what is happening. If you any idea, why it is behave like? Kindly guide me to get resolve this. Thanks.

1 Like

Hello @GeethaNagarajan ,
Why are you using response.cid to get the cid? Your caseInstance already contains it. Please try selecting the caseInstance using cid, check if the issue still occurs, and also ensure that the comment exists in co before submiting

2 Likes

Hi @Sam, Still facing same issue, now I took cid from caseInstance. You can see the screenshort, comment is coming properly. I added the comment in the CO.

1 Like

Hello @GeethaNagarajan ,
Can you share your project in my chat??

Hello @GeethaNagarajan ,
Did you check response? cid error still there??

1 Like

Hi @Sam, CID is not an issue, issue with the title of the comment. In title the task-owner details are mapped. Please check your chat, I have shared the project name.

1 Like

Hello @GeethaNagarajan ,

I am getting the right data, please let me know if this is not what you are expecting

1 Like

Yes, this is what I am expecting. But I am not got. Did you tried with my project, and getting this result?

1 Like

Hello @GeethaNagarajan ,
IIn your project, I updated the cid in the case service for your approve button to be taken from caseInstance instead of CO. You can try it again and let me know if the issue persists. From my end, it’s working for both the approval and modal approval. You can create a new case and try once more

2 Likes

Yes, Issue resolved. Thanks @Sam

1 Like