Skip to Content
avatar image
Former Member

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

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.....

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 24, 2010 at 02:19 PM

    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();

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Mar 25, 2010 at 07:22 AM

    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..

    Add comment
    10|10000 characters needed characters exceeded