Hi
@SakshiShivhare,
You can try below code to rename Email's Subject -
- Input Parameter - 1. Entry ID (Text) 2. Subject (Text)
- Output Parameter - 1. Success (Flag)
![18069.png 18069.png](/t5/image/serverpage/image-id/18222iD163A31C35853713/image-size/large?v=v2&px=999)
Code Stage -
- Inputs -
![18070.png 18070.png](/t5/image/serverpage/image-id/18221iC92EFD2D0036E316/image-size/large?v=v2&px=999)
- Outputs -
![18071.png 18071.png](/t5/image/serverpage/image-id/18226i596D7AAA4FBA7FB9/image-size/large?v=v2&px=999)
- Code -
Dim app = CreateObject("Outlook.Application")
Dim _nameSpace As Microsoft.Office.Interop.Outlook.NameSpace = app.GetNameSpace("MAPI")
Dim item = _nameSpace.GetItemFromID(Entry_ID)
'Below line of code will update the subject line'
item.Subject = Subject
'Below Code will save the updated subject'
item.Save
'Below code will verify the updated subject'
If item.Subject = Subject
Success = True
Else
Success = False
End If
------------------------------
KirtiMaan Talwar
Consultant
Deloitte
------------------------------
KirtiMaan Talwar
IA Consultant
Deloitte USI