Hi all- I am still on my ARS 7.1/ITSM 7.0.03 system. I have a custom shipping/receiving module where we have a regular form that is used to interact with the CMDB. A few months ago I deployed new code which is able to take an asset that is In Inventory and change it to Deployed status, remove the location relationship and relate it to a person. My new challenge has been to use the regular form to receive both existing assets and new assets.
I didn't have too much trouble building the workflow to receive back an existing asset and update the status to In Inventory and create all the required relationships. I have also been able to receive in a new asset and create a new record in the appropriate AST form (based on the class of the product catalog entry) but I just can't seem to properly create a new asset for a bulk inventory item. The part I am struggling with is getting the push fields to the BMC.COR:BMC_Dependency and AST:InventoryQuantity forms because I haven't been able to capture the Instance ID of the new record in the AST:BulkInventory form. I was able to leverage the existing CMDB workflow but those problem push fields actions are performed by active links in the GUI and I just can't get it to translate to filters. I tried using the $LASTID$ to do a set fields from AST:BulkInventory in the action immediately after the push fields to that form but there are lots of BMC filters that fire in the interim so I'm not getting the expected value back for that keyword. Does anybody have any suggestions for how to attack this problem? The only other thing that I have come up with is not desirable at all: doing a set fields from AST:BulkInventory based on timestamp (created in the last 3 seconds for example) which is extremely ugly but might work in our environment for now since there's not much activity. The caveat is that the next phase of the project will be to build out batch receiving where the user can upload a CSV file with potentially multiple bulk inventory assets to be created so the timestamp method will break in that scenario. Thanks in advance, Rick _________________________ Rick Westbrock Remedy Administrator | IT Department 24 Hour Fitness USA, Inc. _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org "Where the Answers Are, and have been for 20 years"

