cancel
Showing results for 
Search instead for 
Did you mean: 

How to user script to get RFx owner Email Address in RFx response page

Former Member
0 Kudos

Hello, expert

We want to user srcipt to get RFx owner Email Address in supplier resopnse page that supplir can send the emai to the RFx owner.

But I do not konw how to get it ,the API can only get the current user information.

Could your expert please provid a solution to us for it..

Thanks.....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I really didnt understand your question. I assume you are trying to retrieve the Email address of the owner in a script?

if that is the case. this should help.

import com.frictionless.api.common.platform.IapiAccountLocator;

ownerAccountRef=doc.getExtensionField("DOC_OWNER_USER").get();

owner=IapiAccountLocator.lookup(session,ownerAccountRef);

ownerEmail=owner.getEmail();

Former Member
0 Kudos

Hello,immanuel farrar

Thanks for your reply.

I am trying to retrieve the Email address of the RFx owner with a script ,

when the supplier do the response for the Rfx, they can send the email to the the Fx owner.

I am working on this approach now.

Regard,

Bill

Former Member
0 Kudos

Hi immanuel,

i have a requirement to lock the rfx response supplier view.

i tried locking the rfx but it dont lock the rfx supplier view .

can u provide some help on this please.

i need to lock it via script .

thanks

saboor

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,immanuel farrar

Thanks for your reply.

We have got the Rfx owner email address following you approach..

Now we add a custom field in supplier response page of RFx, the field type is Text.

when supplier do the response for RFx, they can send private message to the manager of RFx using script.

when we send the message in english, it is Ok ,

but when we send the message in Chinese, the message content become question mark.

I try all the encoding solution , it does not do it's work.

*newMessage = new String(mailmessage.getBytes("ISO-8859-1"),"utf-8");_*

Do you have any suggestion about it?

Thanks..

Former Member
0 Kudos

I am sorry, i cant help with this. i Havent worked on character sets.

Regards,

Immanuel