Hi Team,
I need to change outlook subject name for existing mail.
Please help me anyone for this
Input:
Existing mail subject example below,
Hello world
Expected output:
Hello world_Test
Hi Team,
I need to change outlook subject name for existing mail.
Please help me anyone for this
Input:
Existing mail subject example below,
Hello world
Expected output:
Hello world_Test
HI @lrtetala ,
I facing issue in argument error BC30XXX : Value of type ‘office365Message()’ cannot be converted to ‘mailmessage.’ selected value is incompatible with the property type.
I am using Office360.
Regards,
Raja G
It’s because your email is Office365 Mail message and the solution is for Outlook activity.
If you can use Outlook application it’s feasible with the solution shared by Lakshman
Yes , There is any way to rename the subject from Office360
Office 365 activities uses Graph API and as per it’s documentation we can edit the subject only if the mail is in draft or isDraft=True
.
Update message - Microsoft Graph v1.0 | Microsoft Learn.
Try looking around this documentation if you spot anything.
Thanks,
Ashok
Hi Team,
Please anyone help me for this ,still i am facing issue, If any new approach please let me know.
Regards,
Raja G
Changing the subject is simple with the Graph API. You don’t even have to worry about the bearer token for authentication because with the Office 365 scope you’re already authenticated.
Just use this endpoint in the HTTP Request (365) activity:
https://graph.microsoft.com/v1.0/users/*ID*/messages/*MessageId*
And use this as the body JSON:
{"subject": "New Subject"}