The CreatorCon Call for Content is officially open! Get started here.

Asset state changed by Audit entries

Robert _ysakows
Tera Contributor

We're creating a flow for creating a new asset record. Requestor can decide which asset state it should be created in. We use a very simple flow - collect the requestor input and use 'create record' against alm_hardware table. If we use state = In use, the record is created with this state and then immediately changed to 'in stock'. We've tried everything and can't figure out what's going on. When we select 'In stock' instead, it does not do any changes. If I create the same record from UI, it's created in 'in use' state.
Any suggestions on how to troubleshoot this?

Robert_ysakows_0-1755872082843.png

 

16 REPLIES 16

Robert_ysakows_0-1756120725098.png

and the variables:

model_category=9705523e978a6910e41477971153af60
model=996ef6e247ee8610c38fc93a216d432f
serial_number=23421ewqe2134
acquisition_method=Bring Your Own Asset
u_acquisition_country=c938b7111b121100763d91eebc0713f0
owned_by=5e03ed6ceb74aa549331f80bcad0cd80
support_group=570a183e4769e61098efbdee316d43bf
vendor=
po_number=
cost=;
retirement_date=
cmn_asset_tco=
lease_id=
request_line=b126cdb03be7e21874f60f1c95e45a25
install_status=1
substatus=

I see in screenshot you are setting substate as variable substate, is that right?

there is probably some field you are setting which is aborting the action at backend as it is working through UI


Raghav
MVP 2023
LinkedIn

Yes, we are asking the requestor which state  and substate he wants to set and these values are set accordingly by the flow.

Can you remove the substate mapping from flow just for testing?


Raghav
MVP 2023
LinkedIn

Robert _ysakows
Tera Contributor

today we were able to find the cause - this is the request line variable which we populate with the RITM record - this is causing the state to be flipped to 'in stock'. Still, this is not solving our issue but gets us closer to understanding what's causing. If I do the same from UI, the state is not flipped.

Robert_ysakows_0-1756196500537.png