Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Experience - How to get custom property value from external property file — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Experience - How to get custom property value from external property file

Accepted answer
22
Views
1
Comments
edited Aug 23, 2018 7:09AM in Content Management 1 comment

Summary

How to get custom property value from external property file in custom component

Content

I have created a custom component for creating new search site. And this component code (render.html) internally calling the content and experience cloud APIs. For APIs integration, I am using basic authentication token for authenticating API request.

But I want to get that basic authentication token code value from external property file instead of hard code that value in render.html component file. Below is the sample code snippet.

var token = "Y2*******UNB"; // hardcoded basic auth token value
$.ajax({
url: <cec - rest api url>,

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!