<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Where can I find API / Object Reference Documentation? in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388547#M932867</link>
    <description>&lt;P&gt;Based off your question I'm assuming this is inside of a workflow.&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;You can look up the documentation for the GlideRecord object. Task/Current are just GlideRecord objects referencing a specific record on a specific table.&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;&lt;A href="https://developer.servicenow.com/dev.do#!/reference/api/tokyo/server_legacy/c_GlideRecordAPI?navFilter=GlideRecord" target="_blank" rel="noopener"&gt;https://developer.servicenow.com/dev.do#!/reference/api/tokyo/server_legacy/c_GlideRecordAPI?navFilter=GlideRecord&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;This documentation provides details on current/previous. In the context of a catalog request and inside a workflow context, current is the sc_req_item record.&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;&lt;A href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/tokyo/new_to_servicenow/app_store_learnv2_scripting_quebec_business_rule_scripts" target="_blank" rel="noopener"&gt;https://developer.servicenow.com/dev.do#!/learn/learning-plans/tokyo/new_to_servicenow/app_store_learnv2_scripting_quebec_business_rule_scripts&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Please mark my answer as helpful/correct if it answered your question.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Nov 2022 18:07:46 GMT</pubDate>
    <dc:creator>Elijah Aromola</dc:creator>
    <dc:date>2022-11-19T18:07:46Z</dc:date>
    <item>
      <title>Where can I find API / Object Reference Documentation?</title>
      <link>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388540#M932865</link>
      <description>&lt;P class=""&gt;I'm just starting out with scripting (advanced section of a task) and they give the example of: task.short_description = current.short_Description; I'm asuming short_description is a property of the task object?&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Question 1: Where is the documentation showing all the properties available for a given object? I tried looking at the API reference (&lt;A class="" href="https://developer.servicenow.com/dev.do#!/reference/api/tokyo/client/" target="_blank" rel="noopener nofollow ugc"&gt;HERE&lt;/A&gt;) but I can't seem to find the task object and the associated properties.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Question 2: I see they used a keyword "current". Where do I find the list of keywords and what they mean? I assume "current" means the current associated catalog item but I'd love to see the documentation on it.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks all.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 17:34:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388540#M932865</guid>
      <dc:creator>Brian Hofmeiste</dc:creator>
      <dc:date>2022-11-19T17:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find API / Object Reference Documentation?</title>
      <link>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388547#M932867</link>
      <description>&lt;P&gt;Based off your question I'm assuming this is inside of a workflow.&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;You can look up the documentation for the GlideRecord object. Task/Current are just GlideRecord objects referencing a specific record on a specific table.&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;&lt;A href="https://developer.servicenow.com/dev.do#!/reference/api/tokyo/server_legacy/c_GlideRecordAPI?navFilter=GlideRecord" target="_blank" rel="noopener"&gt;https://developer.servicenow.com/dev.do#!/reference/api/tokyo/server_legacy/c_GlideRecordAPI?navFilter=GlideRecord&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;This documentation provides details on current/previous. In the context of a catalog request and inside a workflow context, current is the sc_req_item record.&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;&lt;A href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/tokyo/new_to_servicenow/app_store_learnv2_scripting_quebec_business_rule_scripts" target="_blank" rel="noopener"&gt;https://developer.servicenow.com/dev.do#!/learn/learning-plans/tokyo/new_to_servicenow/app_store_learnv2_scripting_quebec_business_rule_scripts&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Please mark my answer as helpful/correct if it answered your question.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 18:07:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388547#M932867</guid>
      <dc:creator>Elijah Aromola</dc:creator>
      <dc:date>2022-11-19T18:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find API / Object Reference Documentation?</title>
      <link>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388549#M932868</link>
      <description>&lt;P&gt;This was really helpful, thank you.&amp;nbsp; I'm trying to assign tasks to the owner of the catalog item.&amp;nbsp; It looks like "Owner" is not part of the request item, it's only part of the catalog item that initiates the request item.&amp;nbsp; How do I get to that data?&amp;nbsp; I tried task.assigned_to = current.parent.owner; but that doesnt appear to be the right path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Forgot to ask - is there a way to get "intelisense" or property/method autocomplete?&amp;nbsp; I think that would help me understand what is available with each object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/420726"&gt;@Elijah Aromola&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 18:20:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388549#M932868</guid>
      <dc:creator>Brian Hofmeiste</dc:creator>
      <dc:date>2022-11-19T18:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find API / Object Reference Documentation?</title>
      <link>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388550#M932869</link>
      <description>&lt;P&gt;hELLO&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/349556"&gt;@Brian Hofmeiste&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am assuming that you might have seen this script in catalog task activity of the workflow&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your questions ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes you are correct TASK AND CURRENT are the objects and they have several set of properties that we can use for different purposes while scripting .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here when they said&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;task.short_description&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;here&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;TASK&lt;/STRONG&gt;&lt;/EM&gt;--&amp;gt;Is an object&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;short_description&lt;/STRONG&gt;&lt;/EM&gt;--&amp;gt; is the field available on the task form .If you open the catalog task form you can see the short description field and on the field name you can do a right click on it and click on show short description&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-11-19 at 23.34.06.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/218697i70E9AB7E3A75B880/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2022-11-19 at 23.34.06.png" alt="Screenshot 2022-11-19 at 23.34.06.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when you write&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;task.short_description&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;it means that you are accessing the short description value which is stored in that field on the form .With this syntax you can access any field on the form .But the syntax should be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;"task.your_field_backend_name" ;&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When it comes to&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;current&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&amp;nbsp;Object it is used to perform operations and to access fields on the current for which you are in .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Lets say you are on the incident form and you want to update the current form by updating the short description of the incident you can write like below&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;current.short_description="your_short_Description_Text";&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;current.update();&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;In your case you must be on the RITM form because your workflow should be on RITM table so current object refers to RITM table&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;so your code says&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;task.short_description =current.short_description&lt;/STRONG&gt;&lt;/EM&gt;&lt;EM&gt;&lt;STRONG&gt;;&amp;nbsp; --&amp;gt;This says you are trying to copy the RITM short description to catalog task short description .&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Usually current&amp;nbsp; object is the most common objects used and you can refer this link for more explanation&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/new_to_servicenow/app_store_learnv2_scripting_quebec_business_rule_scripts" target="_blank"&gt;https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/new_to_servicenow/app_store_learnv2_scripting_quebec_business_rule_scripts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark my answer correct if this helps you&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 18:21:46 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388550#M932869</guid>
      <dc:creator>Mohith Devatte</dc:creator>
      <dc:date>2022-11-19T18:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find API / Object Reference Documentation?</title>
      <link>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388552#M932870</link>
      <description>&lt;P&gt;&lt;EM&gt;hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/349556"&gt;@Brian Hofmeiste&lt;/a&gt;&amp;nbsp;you can check my below answer for more explanation and to answer your current question to access the owner please try this code&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;task.assigned_to = current.cat_item.owner;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;because cat_item is the field on the RITM form which stores the catalog item name and owner is on the catalog item form&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;So you can dot walk like above&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Hope this helps&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Mark my answer correct if this helps you&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Thanks&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 18:25:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388552#M932870</guid>
      <dc:creator>Mohith Devatte</dc:creator>
      <dc:date>2022-11-19T18:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find API / Object Reference Documentation?</title>
      <link>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388553#M932871</link>
      <description>&lt;P&gt;ah this is making sense now. &amp;nbsp;So the cat_item is a column on the request item table I take it? Thanks again for your help. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 18:32:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/where-can-i-find-api-object-reference-documentation/m-p/2388553#M932871</guid>
      <dc:creator>Brian Hofmeiste</dc:creator>
      <dc:date>2022-11-19T18:32:21Z</dc:date>
    </item>
  </channel>
</rss>

