since ‎24-01-2018
6 hours ago
duypnguyen
Employee
Re: Creating a Namespace and retrieving the credentials
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
Hi @gokula - can you try following the instruction here to "Create new project from template"? https://www.adobe.io/apis/experienceplatform/project-firefly/docs.html#!AdobeDocs/project-firefly/master/getting_started/first_app.mdThis is the latest version. The one you tried before might be outdated.

Views

38

Likes

0

Replies

1
Re: Controlling which action is called
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
Hi @robyea - it is not recommended to create 2 separate apps in the same workspace, or more precisely even in the same project. You should either:1. init a single app with both ACS and Analytics templates, if your app integrates both services; or2. create 2 separate projects in Developer Console, and init 2 apps for each project - one ACS and one Analytics. Please check out the blog post and video about Firefly projects and workspaces.

Views

53

Like

1

Replies

0
Re: Unable to make call to Campaign API
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
Could you try putting the whole ".campaign-sandbox.adobe.com" as tenant ID? I could recall that I used this "campaign-sandbox" pattern once and needed to give the full URL. Ideally you should contact your ACS techops who can share with you the exact tenant ID.

Views

76

Likes

0

Replies

0
Re: Unable to make call to Campaign API
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
would be useful to console.log the value of "params.apiKey", "params.tenant" and "token" before the "CampaignStandard.init" line, and verify that they are valid using the postman call as dr_venture recommended. The error "400 Bad Request" suggests that some of these values might be null of wrong.

Views

97

Likes

0

Replies

0
Re: Add custom header in Adobe IO call
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
Ok - as mentioned earlier you could add custom headers using any HTTP lib. Example with node-fetch:fetch('https://example.com/getUser', { method: 'get', headers: { 'X-My-Custom-Header': 'value-v' } })

Views

49

Likes

0

Replies

0
Re: Unable to make call to Campaign API
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
@shelly-goel - do you see some logs from the activation? or any code to share?

Views

115

Likes

0

Replies

0
Re: Add custom header in Adobe IO call
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
Hi @saleemr22640314 - is your question specifically about writing an Adobe I/O Runtime action making GET requests to 3rd party API? The action is written in node.js, and you could leverage any HTTP request library such as node-fetch.If you ask about other Adobe I/O services, please post this to the respective forum so that those teams will provide more specific support.

Views

81

Likes

0

Replies

2
Re: ACS API for Deliveries to create Firefly app
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
Hi @shelly-goel - good to hear that you found the codelab useful.1. I don't know much about ACS to answer this. Please try this question in the ACS support forum: https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/ct-p/adobe-campaign-standard-community2. In the mentioned use case, when a workflow is created and run (e.g. with an "External API" step that calls the web URL of the Firefly app), its workflow ID is persisted using aio-lib-state. You can then load the workflow fr...

Views

118

Likes

0

Replies

0
Re: ACS API for Deliveries to create Firefly app
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
Hi @shelly-goel -1. The SDK `aio-lib-campaign-standard` is a node.js interface of all the API exposed by ACS - listed in the documentation you referred to. If there is a resource not exposed by the API, you can neither access it with the Node SDK. Have you tried the "custom resource" in ACS the the data you need?2. We have a sample Firefly app as an ACS dashboard. It's not exactly the same as what you need, but could be a good reference. You may also find the below codelabs useful to get started...

Views

132

Likes

0

Replies

2
Re: How to debug Adobe I/O Runtime Actions during issues/...
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
cc @mhaack from CIF team.

Views

122

Likes

0

Replies

0
Re: How to debug Adobe I/O Runtime Actions during issues/...
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
Hi @Sharma_Shruti - I am not aware of `use-aio-cache` in I/O Runtime config. Also not sure where you get the serverless.yml file? Are you a client of Adobe CIF, which uses the serverless framework?

Views

125

Likes

0

Replies

0
Re: I/O Runtime with Azure (Blobs) Storage
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
Hi @wiki - yes it is possible to connect to Azure Blob storage or any other cloud service in your Runtime action.Adding npm libraries to your runtime action is of course possible.The simplest way is zipping everything and deploy to your action.However, our recommendation is creating Project Firefly apps which take care of the npm dependencies and deployment.

Views

97

Likes

0

Replies

1
Re: How to debug Adobe I/O Runtime Actions during issues/...
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
Hi @Sharma_Shruti - good questions. Please find my answers below. 1. You could use `--since` and `--upto` flags to specify the timestamp, and if there are too many activations, `--limit` and `--skip` would help to traverse the pages. Example: wsk activation list --since 1605609603069 --upto 1605780223069Please note that, activation TTL is 7 days. 2. Activation logs are generated by the action being executed. If you use console.log in your code, they prints the logs out. 3. As mentioned in point ...

Views

168

Likes

0

Replies

5
Re: Error while running the first firefly project
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
Thanks for sharing the info @Saif . I don't see any problem with the setup, all versions are up to date. There is a .env file inside your project directory. Do you see: AIO_runtime_apihost=https://adobeioruntime.net ? If not please add it.It's possible that you have a different host in ~/.wskprops.Related issue: https://github.com/adobe/aio-cli-plugin-app/issues/267

Views

205

Likes

0

Replies

1
Re: Error while running the first firefly project
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
@Saif - could you share the output of this command `aio info` ?

Views

214

Likes

0

Replies

3
Re: Error while running the first firefly project
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Cloud Extensibility
Hi @Saif - are you following the guidance to write your first Firefly app? https://github.com/AdobeDocs/project-firefly/blob/master/getting_started/first_app.mdDoes the error disappear if you terminate the current run command and start a new one?For future questions regarding Project Firefly, feel free to post directly in the Firefly Forum: https://experienceleaguecommunities.adobe.com/t5/project-firefly/ct-p/project-firefly

Views

222

Likes

0

Replies

5
Re: Error on creating project in console
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
@Saif - in that case could you post this question in the Console forum: https://experienceleaguecommunities.adobe.com/t5/adobe-i-o-console/ct-p/adobe-io-console.

Views

125

Likes

0

Replies

0
Re: Error on creating project in console
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
are you doing this on Adobe developer console?

Views

131

Likes

0

Replies

0
Re: Cron-style Alarm Trigger
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
As mentioned earlier, the cron triggers are based on UTC. So yes, if there is a daylight saving in your timezone, you would need to adjust the triggers.Wrt updating cron time, you're right it's not possible to update alarms feed once created. You could instead create a new trigger with correct time feed (2.30), then update the rule to map to the new trigger.

Views

94

Likes

0

Replies

0
Re: Error using debugger with adobe IO actions.
Avatar

duypnguyen

Employee

duypnguyen
- Adobe I/O Runtime
Hi @Nikhil-Kumar - From the error logs, it seems you are using @adobe/aio-lib-state. Please note that, it is not possible to use wskdebug here because the debugger would create a local clone of the action which can not access the DB behind the State SDK (unless you configure it to use your cosmos DB instead of the available one in Runtime).

Views

76

Like

1

Replies

0
Re: error: The API host is not valid: An API host must be...
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
Problem has been solved via DM. We will make some improvements for the codelab so that it's up to date with the generated UI from app template.

Views

188

Likes

0

Replies

0
Re: error: The API host is not valid: An API host must be...
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
@In_Na - glad to hear you are following the code lab. It is actively maintained with up-to-date content. Which error are you getting exactly?

Views

214

Likes

0

Replies

0
Re: Invoke the headless app custom action as soon as app deploy
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
Hi @brijesht4727374 - glad to hear it worked! The rule turning into "inactive" could be a result of continuous failures when you first deployed the scheduled action. Hence it's worth checking if there's no activation after you deploy the triggers and rules.

Views

148

Likes

0

Replies

0
Re: Invoke the headless app custom action as soon as app deploy
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
@brijesht4727374 - please try `aio runtime rule enable everyMinRule` (shouldn't have added the namespace before the rule name).

Views

165

Likes

0

Replies

0
Re: Invoke the headless app custom action as soon as app deploy
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
Ok - it seems your rule is inactive. Could you try this command `aio runtime rule enable 34999-sfmctargetheadless-stage/everyMinRule`, and verify if the trigger runs every minute now?

Views

184

Likes

0

Replies

0
Re: Invoke the headless app custom action as soon as app deploy
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
Hi @brijesht4727374 - could you try this command `aio runtime list` to verify that all your actions, triggers and rules were deployed correctly? and that the rule is active?

Views

195

Likes

0

Replies

0
Re: What options do I have for authenticating an action?
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
sure, I've forked my comment to an answer with the link 😄(the doc doesn't mention the `require-whisk-auth` flag though, we are still working on the docs for manifest grammar)

Views

149

Likes

0

Replies

0
Re: What options do I have for authenticating an action?
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
If the Analytics Data Insertion API doesn't require any authentication, you don't need `require-adobe-auth`. However, I understand that you still want "some protection" for your action.What you could do is adding `require-whisk-auth` to the manifest, its value is a secret hash. Then from the calling system you make request to your action with this header `X-Require-Whisk-Auth: secret_hash`. Other requests without this header would be rejected.Reference: https://github.com/AdobeDocs/adobeio-runti...

Views

150

Like

1

Replies

0
Re: What options do I have for authenticating an action?
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
@oliverf82757722 - thanks for the details. If the Analytics Data Insertion API doesn't require any authentication, you don't need `require-adobe-auth`. However, I understand that you still want "some protection" for your action. What you could do is adding `require-whisk-auth` to the manifest, its value is a secret hash. Then from the calling system you make request to your action with this header `X-Require-Whisk-Auth: secret_hash`. Other requests without this header would be rejected.

Views

157

Likes

0

Replies

0
Re: What options do I have for authenticating an action?
Avatar

duypnguyen

Employee

duypnguyen
- Project Firefly
Hi @oliverf82757722 - just for clarification, how do you trigger your actions in the headless app? Are you leveraging the alarms package to run cron jobs?I'm trying to understand the sequence of actions in your app: does it go to the external service to grab the JSON, transform it, and save the results into Analytics?

Views

174

Likes

0

Replies

0
Likes given to