cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can we create an attachment (upload pdf) field in CDC(gigya).

PranavBhardwaj
Explorer
0 Kudos
584

Is it possible to create a field in CDC which can take a PDF file as an attachment and save the PDF in CDC database.

If so , what is the process to do it?

Accepted Solutions (0)

Answers (3)

Answers (3)

PranavBhardwaj
Explorer
0 Kudos

Hi,

As I understand there is no standard way to create a upload file in screen-set via UI builder.

Can we create a custom field (type- string or binary/encrypted string) in CDC. On UI, we create a upload field via HTML, fetch the pdf through the field ,convert the pdf to binary or xstring format, and finally call a service to save it to the custom field in CDC.

Has anyone worked on similar requirement? Do you have the pseudocode.

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Pranav,

The only types of data supported in the CDC schema is as follows

You can however upload your pdf files to the cloud storages like S3 or Blob or even server them from your own server storage, and then create a string field with the URL of the pdf files.

But anyway storing the pdf file or any binary file in the database, be it relational DB or NoSQL DB is not a best practice. It's recommended to be handled on application side, rather on DB side.

MayaraRegazio
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello, Pranav,

If you want to create a field on the screen-sets to store a PDF file, it is not possible.

Best regards.