This topic contains 3 replies, has 0 voices, and was last updated by HollieY 6 years, 11 months ago.

  • Author
    Posts
  • #18089

    HollieY

    I need to run a script on Vendor Bills, but only one ones brought in from Nexonia, which uses Web Services. I am trying to create a condition based on Source, but the Source comes across as null. However, when I add the Source field to my List View in the UI, I can see a value of “Web Services”. The Source field doesn’t seem to have a value when accessed through script or Workflow. Is there a different, hidden field for the stored Source?

    this is my criteria in the UE script, which runs on AfterSubmit:

    var source = newRec.getFieldValue(“source”);

    if (source == “Web Services”) {…

    Thanks,

    Hollie
    This is a cached copy. Click here to see the original post.

  • #18090

    MChammaTX

    What about using the execution context of webservices instead?

    If the field value does show up in a saved search you can also try using a lookup. For whatever reason it may be saved but not available with the record.

  • #18091

    HollieY

    Do you mean using a search to locate it? I can’t use execution context because we need it to run on edit in any context, but only if created by Web Services.

  • #18092

    HollieY

    I was able to use the Search API’s to find the value to use it in the condition, thanks!

You must be logged in to reply to this topic.