Creating an attachment via REST called by Groovy, depending on a custom FCL

(Doc ID 2356305.1)

Last updated on FEBRUARY 01, 2018

Applies to:

Oracle Fusion Sales Cloud Service - Version 11.12.1.0.0 and later
Information in this document applies to any platform.

Goal

 We have the following Setup.
1 - Custom FCL called Names_c
2 - A Custom Button

Behavior:
When we select a value in the FCL and press the button, we will generate a new attachment named attachment_<number>.txt
The attachment will be a text file that has in it the value selected in the FCL

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms