cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
steven_weber
Flexera beginner

Displaying Custom information for end user in App Portal?

Hi, we are trying to customize the user information in App Portal to display a custom field called Cost Center in when placing an order for software it automatically pulls this information in.  We have this in another system and we are wondering how we can pull info from other resources?

0 Kudos
12 Replies
Highlighted
Flexera CharlesW
Flexera

Re: Displaying Custom information for end user in App Portal?

You could always use a custom web service to do this.. You could either create a question tied to an answer generated by a web service, or you could simply invoke a web service as an action, and a variable containing the value will be set automatically. If you do not need to display the value to the end user checking out, then the second approach would be used.. Otherwise, you'd need to use a question..

If you use a question, then you can resolve the question value that is set by your web service using the following variable syntax:

##QuestionID:XX##

Where XX is the question ID number. If you have a web service, and you want to resolve the value, then you would use the syntax:

##WS_XX##

Where XX is the web service ID used to pass the result of a web service call. For example, I have a web service registered with the name ESDWebService with a method named GetSiteCode.. The variable in this case would be ##WS_ESDWebService_GetSiteCode##

An easy way to know what variables are set for a request, would be to go to the following web service:
http://localhost/esd/ws/integration.asmx?op=GetResolvedRequestVariables

This will list all available variables/values for a given request ID.
0 Kudos
Highlighted
Flexera CharlesW
Flexera

Re: Displaying Custom information for end user in App Portal?

I've attached a custom web service which will lookup a column name in the SCCM DB for a given user name passed to the web service. This could be used for a question, or simply invoked as an action... It is really intended to illustrate how you might call into an external data source to get a value.. Another example of a web service which can be used for a "dynamic" question can be found in the web/ws folder under the App Portal install directory.. The file is named SampleQuestionAnswers.asmx.  The following page in the help library provides a bit more information on the subject.. See Answers Tab.

0 Kudos
Highlighted
steven_weber
Flexera beginner

Re: Displaying Custom information for end user in App Portal?

Charles,

See below from a case we opened up earlier on this issue we were having with the route of a going with a question and web service....

We have been working on an issue in AppPortal. The issue centers around a question, that "today" is not required to be answered by the requestor. The question is using a dropdown list, the list is being populated by a web service. The web service call returns the requestors cost center. During from completion we notice that the employee cost center question says "-select-", but yet it is an answered question. When we select the dropdown arrow, the list displays the cost center of the user reviewing this request, not the cost center that was answered by the requestor. It appears that when looking at the cost center question with the dropdown control, AppPortal is still running the web service call. In our opinion since this is an answered question, AppPortal should use a textbox control and read the value from the database. Issue 2: When this question goes un-answered, in some cases we want this question answered. In this case, the requestor needs to go back and update the request with their answer to the question. The problem is AppPortal does not allow us to update the request. When we click on the dropdown arrow to answer the question, you get a blank list. Expected results is that the web service tied to this question would return the cost center for this requestor. The requestor would answer the question by selecting their cost center and save the request. Looking foward for your help.

This is why we didn't want to do a Web Service Question.

Any assistance on this would be appreciated.

Tks.

Steven Weber
Client Services | Manager
IT Client Services Canada
Weatherford │ 2004 - 64th Avenue │ Edmonton │ AB │ T6P 1Z3
Direct: +1.780.733.8320 │ Fax: +1.780.452.1248 │ Mobile: +1.780.719.1551
steven.weber@weatherford.com │ www.weatherford.com
[cid:image001.jpg@01D5AF2B.D55E9DE0]
[cid:image002.jpg@01D5AF2B.D55E9DE0]
[cid:image003.jpg@01D5AF2B.D55E9DE0]
[cid:image004.jpg@01D5AF2B.D55E9DE0]
[cid:image005.jpg@01D5AF2B.D55E9DE0]



This electronic communication is for the use of the intended recipient(s) only, and may contain confidential, privileged or proprietary information. If you are not an intended recipient, please reply to the sender and then immediately delete and destroy all copies of the communication. See our Electronic Communications Terms and Conditionsfor further information
0 Kudos
Highlighted
Flexera CharlesW
Flexera

Re: Displaying Custom information for end user in App Portal?

Steven,
I think that in the near term, we are unlikely to get dynamic questions working as you would like... How do you wish to "consume" the users cost center? Perhaps we can add a note to the request which would indicate the users cost center, so that the information can at least be easily viewed by someone viewing the request? I'd think that we could create an action which would lookup the target users cost center somewhere, and set a note with that information.. Let me know if you think that this might work for you...
0 Kudos