task server tasks on asset selected in ticket

This issue has been solved. See solution.
lotsill's picture

Creating my first task server task that will execute from helpdesk and running into some trouble.

What is the WORKITEM data field you need to input so the task will execute on the asset assigned in the ticket? From the drop down list, I don't have anything that references the GUID



Thanks





When attempting to run the task, I get the following error





<response result="failure">

- <![CDATA[

An exception occurred while attempting to access the task. Error: System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

at System.Guid..ctor(String g)

at Altiris.TaskManagement.TaskAccess.BuildParamValueCollection(BaseTask task, NameValueCollection inputParams)

at Altiris.TaskManagement.TaskAccess.StartTask(Guid taskGuid, String Name, NameValueCollection InputParams)

at Altiris.TaskManagement.Web.TaskAccess.StartTask()

at Altiris.TaskManagement.Web.TaskAccess.Page_Load(Object sender, EventArgs e)



]]>

</response>













Task properties





Name: HELLOOOOO WORLD TEST

Comment:

Service Category: Change Management

Include in Common Service Category: No

Rank: 1

Display: Incident view page

Logging: Logging to incident will not occur

Status: Active

Visible to guests: No

Task is available: When ANY of these is TRUE

"Category" is the same as "Request\Software\Adobe/Macromedia\Acrobat Reader"

<end>

URL: http://SKYALTIRISNS/Altiris/TaskManagement/taskacc...

URL processing: Allow Helpdesk to process

URL parameters: @AssignedResources WORKITEM(managed_object_asset_tag)

Send parameters using: GET

Credentials: Impersonate the worker

Open in new window: Yes



lotsill's picture

Any ideas??

lotsill's picture

Solution

FYI, here is the correct value that is needs for the asset to execute the task.





WORKITEM(managed_object_resource_guid)

Danny Jeronimo's picture

I am basically getting the same thing.



Name: Install FireFox

Description of Incident:

Service Category: Software Requests

Include in Common Service Category: Yes

Rank: 1

Display: Service Catalog

Status: Active

Visible to guests: Yes

URL: http://1H4XP61/Altiris/TaskManagement/taskaccess.a...

URL processing: Allow Helpdesk to process

URL parameters: @AssignedResources

Send parameters using: GET

Credentials: Impersonate the worker

Open in new window: Yes



pop up window from winuser console





- <response result="failure">

- <![CDATA[

An exception occurred while attempting to access the task. Error: System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

at System.Guid..ctor(String g)

at Altiris.TaskManagement.TaskAccess.BuildParamValueCollection(BaseTask task, NameValueCollection inputParams)

at Altiris.TaskManagement.TaskAccess.StartTask(Guid taskGuid, String Name, NameValueCollection InputParams)

at Altiris.TaskManagement.Web.TaskAccess.StartTask()

at Altiris.TaskManagement.Web.TaskAccess.Page_Load(Object sender, EventArgs e)



]]>

</response>