Here we are using Microsoft O365 activity latest one.
Facing issues while replying to the same mail error as “Reply to Mail: Object reference not set to an instance of an object”
Something is going null i had checked it contains value not null.
This error usually comes from the mail object not being fully initialized by the Microsoft O365 activity, even though it looks like it contains data. It often happens when the mail message variable coming from Get Mail or Get Emails is not passed correctly to the Reply to Mail activity, or when the activity expects the full message object but receives only partial data. Make sure the same mail object output from the O365 Get Mail activity is directly used in Reply to Mail without recreating or modifying it. Also check that the Mail ID and Folder values are not changed before replying. Refreshing the O365 package to the latest version and reauthenticating the connection usually resolves this issue as well.
This error happens because Reply to Mail expects the original mail object returned by Get Emails. Even if the variable is not null, internal properties may be missing if the mail object was stored, modified, or recreated. Pass the mail directly from Get Emails into Reply to Mail without changing it. If it still fails, use Send Mail as a workaround since Reply to Mail has known issues in the latest O365 package.
@Maheep_Tiwari ,
Here send mail is working fine.
But i need to mails to user on the current ongoing mail as well which we are receiving in the dynamic loop accordingly.
Because in PROD server there is no access to outlook so i need solution within the constraints.
Try this
Before Reply email logic, use Get Email By ID to get the email object again using your original email’s Message Id and output of this activity pass to your Reply to Email