- i have coustom workflow action app in which i can update the date property of any tickets deal or contact property only read-only false but. i have problem i have target object field that we can select like deal contact company etc at at time only one but the next field fecthes the all regarding properties of date and time of that selected target object can you please help me first time it works lets say for deal it fecthes all the property but after some time it shows same property of all objects like for contact if you want i can share the code please hel me
Thanks for sharing the details. The issue you’re describing sounds like a state management problem where your app isn’t properly clearing the cached property list when the target object type changes.
Here’s what’s likely happening:
1. User selects a target object (e.g., Deal)
2. Your app fetches all date properties for Deal and stores them in state
3. User switches to a different target (e.g., Contact)
4. The app fetches Contact date properties, but the old Deal properties are still in memory
5. Both lists get merged or the old data persists
To fix this, ensure you’re doing the following:
When the target object changes, clear the property list before fetching new data. Use dependency tracking in your fetch calls (React useEffect with proper dependencies, or similar pattern in your framework).
Make separate API calls scoped to the selected object type, filtering properties server-side if possible.
Add a timestamp or version ID to each fetch to ensure stale data doesn’t override fresh data.
If you’d like to share the code, I can provide more specific guidance. The fix is typically straightforward once you isolate where the state collision is happening.
here is my code please check this its single file only