jetstreamapp / jetstream

A better way to work on Salesforce
https://getjetstream.app/
Other
89 stars 18 forks source link

in the Automation Control tab I no longer see record trigger flow #1022

Open Gustave94 opened 2 months ago

Gustave94 commented 2 months ago

Describe the bug and steps to reproduce Hello Everyone, When i select object and record trigger flow in automation control tab, i see 0 flow

Expected behavior See flows please :)

Capture d’écran 2024-09-17 à 00 06 53

Browser and operating system:

paustint commented 2 months ago

This is the query that Jetstream uses to get access to the record triggered flows.

  1. Can you try running this query on the query builder page? (replace "Account" with your object that has a record triggered flow)
  2. Can you confirm that the flow is not part of a managed package?
  3. See the second query below, can you see if that returns anything?

If 1 above returns records, that means there is an issue in the processing of the data. see screenshot below to see if there are errors posted there

SELECT Id, ManageableState, IsTemplate, ActiveVersionId, Label,
    ApiName, Description, DurableId, IsActive, LastModifiedBy,
    FORMAT(LastModifiedDate), LatestVersionId, ProcessType, TriggerObjectOrEventId,
    TriggerObjectOrEvent.QualifiedApiName, TriggerObjectOrEventLabel, TriggerType,
    (
        SELECT Id, ApiVersion, ApiVersionRuntime, DurableId,
            FORMAT(LastModifiedDate), ProcessType, RunInMode, Description, Label, VersionNumber,
            Status
        FROM Versions
    )
FROM FlowDefinitionView
WHERE TriggerObjectOrEvent.QualifiedApiName IN ('Account')
    AND ManageableState IN ('unmanaged', 'installed')
    AND TriggerType LIKE 'Record%'
ORDER BY TriggerObjectOrEventId, Label

Here is a more laxed query - if above does not return results, then try this and see if it returns results

SELECT Id, ManageableState, IsTemplate, ActiveVersionId, Label,
    ApiName, Description, DurableId, IsActive, LastModifiedBy,
    FORMAT(LastModifiedDate), LatestVersionId, ProcessType, TriggerObjectOrEventId,
    TriggerObjectOrEvent.QualifiedApiName, TriggerObjectOrEventLabel, TriggerType,
    (
        SELECT Id, ApiVersion, ApiVersionRuntime, DurableId,
            FORMAT(LastModifiedDate), ProcessType, RunInMode, Description, Label, VersionNumber,
            Status
        FROM Versions
    )
FROM FlowDefinitionView
WHERE TriggerType LIKE 'Record%'
ORDER BY TriggerObjectOrEventId, Label

If #1 above has results - then I would be curious if there are any errors that show up in the console

Gustave94 commented 2 months ago

Hello, thank you for your message, i don't found any flow : Capture d’écran 2024-09-17 à 10 16 49

paustint commented 2 months ago

@Gustave94 - Did you try the second query and did anything show up from this one?

SELECT Id, ManageableState, IsTemplate, ActiveVersionId, Label,
    ApiName, Description, DurableId, IsActive, LastModifiedBy,
    FORMAT(LastModifiedDate), LatestVersionId, ProcessType, TriggerObjectOrEventId,
    TriggerObjectOrEvent.QualifiedApiName, TriggerObjectOrEventLabel, TriggerType,
    (
        SELECT Id, ApiVersion, ApiVersionRuntime, DurableId,
            FORMAT(LastModifiedDate), ProcessType, RunInMode, Description, Label, VersionNumber,
            Status
        FROM Versions
    )
FROM FlowDefinitionView
WHERE TriggerType LIKE 'Record%'
ORDER BY TriggerObjectOrEventId, Label
Gustave94 commented 1 month ago

hello, sorry for my late answer no, still the same message, sorry for my late return, I have the impression that it's linked to my computer or browser, once I tried in private browsing it worked then it didn't work any more.

paustint commented 1 month ago

@Gustave94 - I don't know for sure, but it sounds like this is potentially permissions related. Your browser shouldn't make a difference, but we will take a look through the code paths to determine if there are any cases that might end up not returning any results.

Gustave94 commented 1 month ago

Hello, Hope you are fine, please do you have any informations about my issue ?

paustint commented 1 month ago

@Gustave94 - I just sent you an email, please take a look and reply there.