Service Catalog Service Portal. Triggering price recalculation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2018 10:16 AM
So I've been trying for a while to add a custom component to catalog items to do a quantity in service portal. Not an item quantity, an option quantity.
Our console solution was to have a lookup select box on the catalog items that pointed to a custom table that held prices we could manipulate. We would then flip that select box from the value with the price to "" and back to the value which would trigger a price re-calculation. Doing that in script does not trigger the price calculation. We've found that by doing it in a setTimeout it will but the time varies. Clearly we don't want to rely on that.
What i would REALLY like to do is to modify the catalog widget to add a record watcher for our custom price table and have that record watcher trigger a price re-calculation but I can't figure out for the life of me how to do a "calcPrice" in service portal. (It doesn't appear to be available anymore in console either in kingston)
Does anyone out there know how to trigger price recalculation in a way that works in portal? bonus points if it also works in console.
Edit: Found another person with the same basic issue, no answer: https://community.servicenow.com/community?id=community_question&sys_id=4fdacb6ddb5cdbc01dcaf3231f96197e
- Labels:
-
Service Catalog
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2018 11:46 AM
So that seems to be a ServiceNow Bug.
I cant do much trail and error, since I don't have the same setup you have.
The best we can do since we don't have access to the Price field of the catalog is, create a Price field on the form and hide the price from catalog.
On submit, add a business rule to update the requested item price = current.variables.myprice.
Please mark this response as correct or helpful if it assisted you with your question.
