Workflow for catalog item - workflow

CATALOG ITEM
*Manger = existing User list.
*Employee who needs access = existing User list
Workflow after request is submitted:
Short description of the ticket should be the same as the title of the catalog item.
Task A (catalog task)
The catalog task A is assigned to any group to verify if access should be granted. When this task is closed task B is generated.
Task B (Catalog Task)
Catalog task B is assigned to another group to give access. Once task is closed a notification is sent to both Manager and the Employee listed above. When all tasks are completed then the Request is marked as closed.
can anyone help me to code to send notification to manager and employee variable from above in catalog workflow?

You need to use workflow script on Catalog Task and Approval activities of the workflow
Go to catalog task activity and write below script to achieve : "Short description of the ticket should be the same as the title of the catalog item" (for the first task) You could populate Assignment Group accordingly as well
task.short_description = current.short_description;
Go to catalog task activity and write below script to achieve : "Short description of the ticket should be the same as the title of the catalog item" (for the second task) You could populate Assignment Group accordingly as well
task.short_description = current.short_description;
Then go to Approval activity and you can dot walking like this. You could also select the below indicated fields without writing the code
{$request.request_for} and {$request.request_for.manager}

Related

How can we add autotext (user name, timestamp) to entries in a mutliline text field in Azure Devops?

For multiline text fields in Azure DevOps work items, is it possible to add functionality that inserts the user name and a timestamp? Our old work tracking solution had a button labeled Stamp that performed this function but the lack of it in DevOps is causing some workflow and auditing issues. The information we need is part of the History for each work item, unfortunately it is not queryable data.
Something like this:
DeveloperLuke # 12/20/2018 9:01 AM
Solution XYZ deployed to ABC.Dev01
InfraLeia # 12/20/2018 10:35 AM
Solution XYZ failed to deploy to DEF.QA01 with error "Resource not responding. A34". Currently investigating.

How to get job id of existing job in XTRF smart project

I would like to update the status of existing jobs in XTRF smart projects using the XTRF Home Portal API. The API call requires a job ID, but I don't where to find this ID.
End point:
.../v2/jobs/{jobId}/status
Following the solution of a similar post, I have defined a view with a list of jobs that require updating. However, there seems to be no column that holds the {jobId} that is required for the API. There is a column called "Internal ID" that contains a 4-digit number. But when I use that number in the API call, there's an error:
"Invalid Job ID of a Smart Job. Use new form of Job ID for Smart Jobs (e.g. 2QROVSCO3ZG3NM6KAZZBXH5HMI)."
So apparently, there is a new form for the job ID. Is there a specific column for the view that I should use, or is there another way to retrieve this job ID?
The Job ID can be found in the url (after clicking on a job):
https://[your xtrf url]/xtrf/faces/projectAssistant/projects/project.seam?assistedProjectId=5GB3QLPO2QROVSCOR55O3WJVU2Y#/project?jobs=DZAGF2QROVSCOVBJPG2UVBCJZ4II
The Job ID is DZAGF2QROVSCOVBJPG2UVBCJZ4II
Another way is to retrieve the jobs by the API itself, this can be done for a quote, but also for a project:
Endpoint: /v2/quotes/{quoteId}/jobs

K2 Blackpearl what is a definition for Folio

I am new to K2 Blackpearl. I have searched the web for a description of what a Folio is. Can someone please explain what a Folio is in K2 Blackpearl?
Folio is a process level property which can be used to differentiate various instances of a workflow. Lets consider a scenario - you have a K2 Approval workflow for Bill Request of different markets.
We can set Process folio as : " "Market" - Bill Request" which will help the end user to distinguish it . We have a unique Process ID for every workflow but that is of no use for an end user.
Process Folio can be set either when it is triggered from smart forms or Web Services and in the workflow using Data Event or Server code Event.
The best way to think of a Folio is as the subject line for a process
Folio is a Title for each process instance. Try to keep your folio unique for each instance in for a particular process. I normally add ID or Process Originator name to folio which helpful when you need to troubleshoot any instance as you folio name is informative. Below is an example,
If I have a workflow to Approve Documents.
Process Name: DocumentSignOff
Folio: DocumentSignOff-[ProcessInstanceID]-[Originator]
i.e. DocumentSignOff-1254-JognDoe
Basically in K2, a folio is a description that tags one WF task submitted from the other. The best way to create a folio, is to ensure that, every task submitted gets to be concatenated to a Process InstanceID.
For instance: Cash Advance for Wallace Cole - 17893
Appending process Instance ID to every task submitted is one of the best ways to track task submitted,using the Process Instance ID or in short ProcID.

MS Dynamics CRM. Workflow update record

I have workflow that updates entity record after checking condition. Everything works well. But... For example workflow's owner is User1 and i try to modify the record with User2. I thought field "Modified By" must have a value User2, but it has a value User1. Why?
Automatic workflows inside Dynamics CRM always run in the security context of the owner of the workflow.
In your case the owner of the workflow is User1, so it's right that the modifiedby field has User1 value.
To complete the answer, on-demand workflows run in the security context of the running user.

Working with Google Cloud Print

I have begun digging around in the Google Cloud Print project in hopes of creating a custom application for my network. I have a Windows Print Server running with a printer queue I wish to submit jobs to. Setup the Google Cloud Print with the Crome browser and I was able to submit and print jobs just fine. However, my end goal is a little more complicated.
I need to customize the access control from the server-side client endpoint once the job reaches my network. Meaning, once the job is submitted, I need to be able to check the username of the owner of the job and process accordingly. From the looks of it, the /fetch interface does not store the original owner of the job, just the end owner of the queue it ends up on. Meaning, User A has the Google Cloud Printer linked to their account and has shared it with User B. User B submits a job to the shared queue. When I run /fetch on the shared printerID the user is User A.
Has anyone else dabbled with this?
Thanks
Take a look at the ownerId of the job.
The /fetch call does in fact return a user field containing the owner of the printer (User A), but the specific job(s) returned contains an ownerId field with a value of the user that submitted the print job (User B).
Hope that helps.
Following is a partial response from a /fetch call, including ownerId of the job. Keep in mind that this could be one of many jobs that are returned in the jobs array:
...
updateTime: "1403628993840",
status: "QUEUED",
ownerId: "rpreeves#gmail.com",
rasterUrl: "https://www.google.com/cloudprint/download?id=5ca7b1e4-c533-c42b-7d2b-efb862c4215a&forcepwg=1",
ticketUrl: "https://www.google.com/cloudprint/ticket?format=ppd&output=json&jobid=5ca7b1e4-c633-c42b-782b-efb862c4215a",
printerid: "f33c6ff8-fc25-7075-249b-ab65c3e2354e",
...