Trying to populate "To" email in new email page

Hi Team,
I am trying to populate “To” email in New Email page as per interface API documentation but i am not getting results as expected. Though i am getting a success response. The “To” email field is not getting populated . Here is the code snippet i’m using :

client.interface.trigger("setValue", { id: "requester", value: "test@gmail.com"})
.then(function (data) {
  console.log(data)
}, function (err) {
  console.log(err);
});

Please let me know if this is correct or am i missing something here?
Thank You,
sarfaraz

Hi Sarfaraz,

If you check the developer documentation 9screenshot attached below) it mentions the interface APIs available for the new email page. Unfortunately, setting the value of the ‘To’ field is not one of the use cases we support in the new email page and so the code snippet you have written will not work.

Please let us know if we can help you with anything else,

Regards,
Rohith

Hi Rohith,
Thank you for you response
The requirement for me is to populate the “To” field in the new email page with a predefined email when a user clicks new email page for the first time.
Is there any workaround for this problem?

1 Like

Hi @sarfaraz_Mohammed, Just checking in if you found any work around? Meanwhile we looking if there is any.

Hopefully this topic can help,

cc: @sarfaraz_Mohammed

Thank you for your response @Saif
I haven’t found any workaround for this yet.