I want to populate Delivery address from the REQ to RITM but it is not populating

Raju Singh1
Tera Expert

I am working on Order guide. When I order something . It asks me for an Shipment address and this gets populated in the REQ as Delivery Address (this is an oob field)

I want to populate this Delivery address from my REQ to RITM Shipment address.

Please find the attached screen shots.

Capture.JPG

Capture1.JPG

Capture2.JPG

before_business Rule.JPG

Capture3.JPG

I have written a business Rule (before) script but it is now working. However Shipment address field in RITM is not a variable.

This is the business Rule

(function executeRule(current, previous /*null when async*/) {

// Add your code here

current.u_shipmentaddress=current.request.delivery_address;   // Delivery address field on RITM form has field name u_shipmentaddress

})(current, previous);

Please help me..

Regards,

Raju Singh

1 ACCEPTED SOLUTION

Rajesh Annepak1
Kilo Guru

Hi Raju ,



It seems the business rule that you have written is fine and also please include current.update() and check once again



Type : Before Business rule



Condition : Requested_item.Item = Catalog Item Name


Add Script : current.update



Please let me know if this doesnt work for you



If your query is resolved / helpful please hit correct/ helpful



Rajesh Kumar Annepaka


View solution in original post

6 REPLIES 6

Hi Raju,



please mark   as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list



Thank you,


vishu


bodohew55
Giga Contributor

Delivery address of a company like resi jnt cargo is a critical component of any procurement process. Without an accurate delivery address, goods and services cannot be delivered to the appropriate location, leading to significant delays and frustrations for both the customer and the supplier. In the ServiceNow platform, the delivery address is typically pulled from the request (REQ) and populated to the task record (RITM) for fulfillment. However, in some instances, the delivery address may not populate, leading to errors and delays in the procurement process.