Using ap_suppliers_pub.create_vendor_site for sites with the same address and different org
I need to write a script to add multiple sites with the same address but a different org to a vendor. I am just starting on it and trying to understand how the script works. I am looking at Note #1970252.1 and note # 2339377.1 and I am confused. Note 2339377.1 says that if you add a site with the same address but a different org, it will use the existing address name. Then Note #1970252.1 provides a code example that looks like you have to query the existing address and pass the party_id and location_id.
What is required in order to use AP_VENDOR_PUB_PKG.CREATE_VENDOR_SITE for multiple sites with the same address but different orgs?