<?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>topic Re: Get the Request ID shown in vRA into an email in VMware Aria Automation Tools Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402546#M9976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. i was trying to get User request number. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2018 04:54:13 GMT</pubDate>
    <dc:creator>kumarsenthild</dc:creator>
    <dc:date>2018-08-28T04:54:13Z</dc:date>
    <item>
      <title>Get the Request ID shown in vRA into an email</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402540#M9970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello and thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get the request number from the vRA request (specifically when a user requests a new server) and i want to pump that to Orchestrator to insert into an email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone done this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, has anyone else abandoned the vRA built in emails and created your own in orchestrator? How did you format the scripting in vRO for html formatted emails with vra variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 15:36:48 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402540#M9970</guid>
      <dc:creator>aamodei01</dc:creator>
      <dc:date>2015-11-05T15:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Request ID shown in vRA into an email</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402541#M9971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you use vCO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We add the Request ID in some ASD email notifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Snippet for creating an HTML Email Body:&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14467397898886945" jivemacro_uid="_14467397898886945"&gt;
&lt;P&gt;subject = "[Action Required] - User Request";&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;sendTo = "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:ALERT@mail.com"&gt;ALERT@mail.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;body = "Request Details:&amp;nbsp; \n"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; + " \n"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; + "Titel " + new_user_titel + " \n"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; + "Name: " + new_user_firstaname + " \n"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; + "Notes:&amp;nbsp; \n"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; + request_notes + " \n \n"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; + "Request ID: " + __asd_catalogRequestId + " \n"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; + " \n"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; + " \n"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; + "Requester Details \n"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; + "Requested by: " + __asd_requestedBy + " \n";&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ASD vCO Workflows you can use these predefined inputs:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ASD.png"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/62510iF943ECB7BCF7C7CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="ASD.png" alt="ASD.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 16:14:07 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402541#M9971</guid>
      <dc:creator>vMarkusK1985</dc:creator>
      <dc:date>2015-11-05T16:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Request ID shown in vRA into an email</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402542#M9972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;STRONG style="font-size: 12.6000003814697px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-userid="2204467" data-username="vMarkusK1985" href="https://communities.vmware.com/people/vMarkusK1985" name="&amp;amp;amp;lpos=apps_scodevmw : 81" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3399cc; text-decoration: underline;"&gt;vMarkusK1985&lt;/A&gt;vMarkusK1985!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using vCO and Im new to all this and in the reading i've done thusfar (and I could be missing the point) those __asd... values seem to only exist when you are using an ASD based action/workflow, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm simply trying to bypass the build in vRA emails and build my own. One thing I'm stuck on is trying to get the request # that is generated when the user builds a vm into the subject line of my custom emails (similar to what the built in ones do now).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 17:00:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402542#M9972</guid>
      <dc:creator>aamodei01</dc:creator>
      <dc:date>2015-11-05T17:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Request ID shown in vRA into an email</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402543#M9973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@aamodei01 I think your are right. Its only possible via a ASD... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you use a Stub to trigger your vCO custom email?&lt;/P&gt;&lt;P&gt;I send custom emails after provisioning in my enviroment, but I do not include the Request ID in these Mails... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the "&lt;SPAN style="font-size: 13.3333px;"&gt;Request ID Problem" I have no solution at the moment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But I think Object &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;vCACCAFEEntitiesFinder&lt;/STRONG&gt; is an option, there is a Method &lt;STRONG&gt;findRequests&lt;/STRONG&gt; avaiable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Use the API Explorer in vCO to dig in....&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 19:09:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402543#M9973</guid>
      <dc:creator>vMarkusK1985</dc:creator>
      <dc:date>2015-11-05T19:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Request ID shown in vRA into an email</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402544#M9974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do decide to use ASD, when you send your request back into VRA for provisioning using the 'requestCatalogItem' action, the output is a VCACCAFE:CatalogItemRequest, which had id, request dates, numbers etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 21:07:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402544#M9974</guid>
      <dc:creator>tm19</dc:creator>
      <dc:date>2015-11-05T21:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Request ID shown in vRA into an email</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402545#M9975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I think maybe you are asking for Request ID... and describing Request Number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have RequestID but are lacking the Request Number?&lt;/P&gt;&lt;P&gt;var request = vCACCAFEEntitiesFinder.getCatalogItemRequest(CAFEHOST , requestID);&lt;/P&gt;&lt;P&gt;var requestNumber = request.getRequestNumber();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you don't have either number...&lt;/P&gt;&lt;P&gt;Which workflow or workflow stub (extension) are you building this email in?&amp;nbsp;&amp;nbsp; (or is it Async waiting on something to complete?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CAFE Resource object is created last in a successful run.&amp;nbsp; You can get the reference Request ID from that resource.&amp;nbsp; You can also do a little logical filtering to get to get a likely request candidate.&amp;nbsp; This represents the initial filter that you can use to get an array of request objects that fits within the criteria of values readily available in the extensible stubs.&amp;nbsp; You can filter on many fields for many different values to get the correct object back.&amp;nbsp; With correct object, you can get the ID and Request Number easily enough...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14467714940704227" jivemacro_uid="_14467714940704227" modifiedtitle="true"&gt;
&lt;P&gt;// Here are many filter examples.&amp;nbsp; You can pick and choose how best to limit your query&lt;BR /&gt;// to get back as few objects as possible.&amp;nbsp; From those objects, you can then better determine&lt;BR /&gt;// which object is required.&lt;BR /&gt;var filter = new Array();&lt;BR /&gt;filter[0] = vCACCAFEFilterParam.equal("requestedFor", vCACCAFEFilterParam.string("&lt;A href="mailto:username@domain.com"&gt;username@domain.com&lt;/A&gt;")); // available in the stubs&lt;BR /&gt;filter[1] = vCACCAFEFilterParam.equal("requestedBy", vCACCAFEFilterParam.string("&lt;A href="mailto:user@domain.com"&gt;user@domain.com&lt;/A&gt;")); // available in the stubs&lt;BR /&gt;// The below value is populated with the servername in Successful requests... and in MOST Failed requests. I have seen it blank before, but that is a failed state too.&lt;BR /&gt;filter[2] = vCACCAFEFilterParam.substringOf("requestCompletion/completionDetails", vCACCAFEFilterParam.string("ServerName")); // available in the stubs&lt;BR /&gt;// This is the&amp;nbsp; part of the complex property that shows Failed or Successful based on completion. Per the schema.xsd document, there are only&lt;BR /&gt;// two states for this property.&lt;BR /&gt;filter[3] = vCACCAFEFilterParam.substringOf("requestCompletion/requestCompletionState", vCACCAFEFilterParam.string("SUCCESSFUL")); //OR FAILED&lt;/P&gt;
&lt;P&gt;// dump the filter array into a query object&lt;BR /&gt;var query = vCACCAFEOdataQuery.query().addFilter(filter);&lt;/P&gt;
&lt;P&gt;//get a pageable request back of the objects from the query&lt;BR /&gt;var filteredRequests = service.getRequests(new vCACCAFEPageOdataRequest(query));&lt;/P&gt;
&lt;P&gt;// to get from the pageable format to the VCO objects use .getContent()&lt;BR /&gt;// which gets you an array of the object types.&amp;nbsp; It will be a short array&lt;BR /&gt;// because we filtered out all the junk above.&amp;nbsp; Ideally it would be an array&lt;BR /&gt;// of ONE object if our filter was written to meet our requirements.&lt;BR /&gt;for each (filteredRequest in filteredRequests.getContent()){&lt;BR /&gt;System.log(filteredRequest.getRequestNumber() + " : " &lt;BR /&gt;&amp;nbsp;&amp;nbsp; + filteredRequest.getDateSubmitted() + " : " &lt;BR /&gt;&amp;nbsp;&amp;nbsp; + filteredRequest.getId());&lt;BR /&gt;}&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 01:01:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402545#M9975</guid>
      <dc:creator>SeanKohler</dc:creator>
      <dc:date>2015-11-06T01:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Request ID shown in vRA into an email</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402546#M9976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. i was trying to get User request number. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 04:54:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402546#M9976</guid>
      <dc:creator>kumarsenthild</dc:creator>
      <dc:date>2018-08-28T04:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Request ID shown in vRA into an email</title>
      <link>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402547#M9977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do we get the failed catalog requests request number or ID? using the following failed completion payload properties(including __asd)? I am not able to match the below requestId or deploymentId with vRA catalog request details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;STRONG style="font-style: inherit; font-size: inherit; font-family: inherit;"&gt;Failed Payload properties:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;{taskType=PROVISION, subtenant=92c2bd1a-********, completionDetails=The following component requests failed: some failed reason...&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;....&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;...&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;STRONG&gt;requestId=c25eef16-2&lt;/STRONG&gt;*********, success=false, &lt;STRONG&gt;deploymentId=68238be4&lt;/STRONG&gt;-************, blueprintId=test, tenant=testTenent, requestStatus=FAILED}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;'__asd_requestInstanceId'&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;'__asd_catalogRequestId'&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;'__asd_targetResourceId'&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;'__asd_correlationId'&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;'__asd_requestTraceId'&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;'__asd_requestTraceId'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2018 21:24:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Aria-Automation-Tools/Get-the-Request-ID-shown-in-vRA-into-an-email/m-p/1402547#M9977</guid>
      <dc:creator>balawiz</dc:creator>
      <dc:date>2018-08-28T21:24:46Z</dc:date>
    </item>
  </channel>
</rss>

