Show Catalog item if the asset state is "In Stock" and Sub State is "available"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 04:53 AM
I want to show to catalog item on portal if the asset state is "In stock" and sub state is "available". Otherwise hide the catalog item.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 06:01 AM
You could start with ACL's, but that would become a mess. Why not create a flow on the asset table that checks on the asset state/substate and activates the catalog item if it's available (and inactivates it, when it's not anymore).
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 07:37 AM
Hi Mark,
what should be the trigger for flow?
will it work on the existing data?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2024 06:38 AM
You can trigger the flow on change of the asset state/substate (if asset is in stock and available, set catalog item to active, if not, to inactive). For existing data you would need a fix script (depending on how many catalog items you have). If it's not that much of which your assets are out of stock, just deactivate those catalog items and your flow will correct them on change.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 09:22 AM
Thanks Mark,
I'll try this solution.
As of now I have created a BR on asset table. which is getting trigger on change of the asset state/substate. if the asset is not is stock it hide the catalog or portal.