Invoke the headless app custom action as soon as app deploy

Avatar

Avatar

brijesht4727374

Avatar

brijesht4727374

brijesht4727374

29-10-2020

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

 

 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

brijesht4727374

Avatar

brijesht4727374

brijesht4727374

01-11-2020

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.

 

Answers (0)