How can I fix Error "Identifier Expected"

Hi,
how shall I change my value to solve the error: Identifier expected.

Assign activity:
mail.sender → [“Lastname Firstname” Firstname.Lastname@dyckerhoff.com]

Its variable type MailAddress

Hello @bibalesecret

Please share a screenshot of the activity throwing the error and the error message.

I think the format of the value assigned is wrong. So please share the above details.

Thanks

I cant upload a screenshot, because of an error.
But I uploaded it to:

Ihope thats okay.

HI @bibalesecret

What you are assigning here actually and tell what you need to assign there?

It seems quite wrong and different

Regards
Sudharsan

I want to assign an e-mail adress to the variable MailAdressNull with the following value:
[“Lastname Firstname” Firstname.Lastname@dyckerhoff.com]

When I looked in the output of my for each activity after the get mail message activity, the value of the variable “sender” had the same format in the above value. So I thought I can assign the same to my variable “MailAdressNull” with type MailAdress :slight_smile:

Does that mean in the assign activity you trying to assign to “MailAdress” the email address?

Thanks

Yes, exactly

give a try at following:
grafik

YourMailVar.Sender = new MailAddress("Firstname.Lastname@dyckerhoff.com","Lastname Firstname")

As the DataType of Sender Property is of MailAdress we cannot assign a string due different datatype

1 Like

@bibalesecret

String variable
Var1= “”“Lastname Firstname”“Firstname.Lastname@dyckerhoff.com

image

Regards
Sudharsan

This worked for me.
Thanks Peter!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.