Hi Team,
Our use case is mentioned below.
The client is having an existing third-party system where Audience details are created and stored. The third-party system has APIs for sharing the Audience Data. We want to import this Audience Data from this third-party system using their APIs into Target for a personalized experience of imported Audience.
For our use case, we have to invoke our custom action as soon as the app deploys. I tried to invoke the app as soon as app deploy by following the below link "https://adobeio-codelabs-alarms-adobedocs.project-helix.page/?src=/lessons/lesson2.html" but not able to achieve it.
Can anyone please look into the attached file and suggest the fix.
Attaching the manifest.yml file for reference. I have just change the generic > index.js file to return a message and logging. In manifest.yml file, I have made changes and added triggers to run the generic > index.js action every minute. I tested it by using the command aio rt activation list but it didn't show that the action triggers every minute.
packages:
__APP_PACKAGE__:
license: Apache-2.0
actions:
generic:
function: actions\generic\index.js
web: 'yes'
runtime: 'nodejs:12'
inputs:
LOG_LEVEL: debug
annotations:
require-adobe-auth: false
final: true
triggers:
everyMin:
feed: /whisk.system/alarms/interval
inputs:
minutes: 1
rules:
everyMinRule:
trigger: everyMin
action: generic
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi All,
The details provide by @duypnguyen was very helpful. The issue was that if we setup a trigger and remove it later it is goto inactive mode. If we try again the trigger rule and deploy after that the rule is not getting active. The command "aio runtime rule enable everyMinRule" provided by @duypnguyen solve the issue.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @duypnguyen ,
I run the command below is the outcome . Attaching the scrrenshot
C:\Capgemini\Nodejs\adobefireflyheadless>aio runtime list
Entities in namespace: packages /34999-sfmctargetheadless-stage/sfmctargetheadless-0.0.1 private actions /34999-sfmctargetheadless-stage/sfmctargetheadless-0.0.1/generic private nodejs:12 triggers /34999-sfmctargetheadless-stage/everyMin private rules /34999-sfmctargetheadless-stage/everyMinRule private inactive
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @duypnguyen,
I tried running the command " aio runtime rule enable 34999-sfmctargetheadless-stage/everyMinRule --verbose " but it is giving Error: failed to enable rule: the requested resource could not be found. (404 Not Found). Kindly let me know what is missing and how to fix it.
Adding manifest.yml file screenshot also for reference.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi All,
The details provide by @duypnguyen was very helpful. The issue was that if we setup a trigger and remove it later it is goto inactive mode. If we try again the trigger rule and deploy after that the rule is not getting active. The command "aio runtime rule enable everyMinRule" provided by @duypnguyen solve the issue.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies