Search for existing answers to your product and support questions.
Familiarize yourself with our support site and learn best practices in working with our team.
Manage Service Requests, View and update service requests submitted by you and others in your organization.
Submit a new issue to our technical support team.
Oracle B2C Service insights from our Technical Support team subject matter experts
Browse resources to assist you in launching your implementation and ensure a successful go-live.
Access your OCI account.
Find product documentation for supported versions of B2C and documentation libraries for related service solutions.
You will have the tools to improve your customers' experience when you learn about all the things our products can do.
Find links for API documentation, Custom Processes, Customer Portal, and Agent Browser UI Extensibility Framework.
Explore how accelerators are designed to demonstrate how an integration scenario could be built using the public integration and extension capabilities of the Oracle B2C Service.
Prepare for a successful transition by reviewing upcoming release changes and enhancements.
Explore webinars, events, and feature kits to learn about B2C Service features, functionality, and best practices from the technical experts.
Oracle MyLearn offers a portfolio of free and paid subscription-based learning resources to help you gain valuable skills, accelerate cloud adoption, increase productivity, and transform your business.
Empower your team with the skills to implement, configure, manage, and use your applications with Customer Experience Cloud Training.
Our goal is to facilitate a friendly, supportive environment where members can easily collaborate with each other on solutions and best practices.
Ask and answer questions specific to B2C.
This is an exciting resource intended to help with your Oracle Service Cloud Analytics.
Share product improvement ideas and enhancement requests with Oracle Development, while collaborating with other Oracle customers and partners.
Update your phone number, email notification preferences, and severity 1 and severity 2 contact preferences.
View the contact managers within your organization.
Find contact information of the Technical Account Manager (TAM) and Client Success Manager (CSM) for your organization.
What are the constraints that could ensure/prevent previous object values from being retrieved using "prev" in Custom Processes?
Environment:
Connect PHP API
Resolution:
Previous values retrieved using "->prev" are not set if an asynchronous custom process is involved, by design. In order for previous values to be available, the custom process would have to be synchronous.
Also, previous values are not available on fetched objects (objects obtained using the API fetch function). For previous values to be available in a synchronous CPM, the object reference passed in the CPM apply function must be used. This applies to code placed in the CPM Test Harness class, including the object passed in the main CPM class apply function.
Keep in mind that unlike their asynchronous version, synchronous custom processes have an execution time limit of 5 seconds. Further, code for this should handle cases where the previous value is null such as in the following example:
if (isset($obj)) { if (isset($obj->prev)) { if (isset($obj->prev->CustomFields->c->fieldName)) { $clminfoprev=$obj->prev->CustomFields->c->fieldName; } } }
You can find more information about the two types of execution for custom processes in the following knowledge base article: Answer ID 6604: There are two types of execution for Object Event Handlers
Additional information can be found in the ConnectPHP documentation: Answer ID 5169: Technical Documentation and Sample Code