Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow filter by fields #145

Open
baubakg opened this issue May 15, 2024 · 0 comments
Open

Allow filter by fields #145

baubakg opened this issue May 15, 2024 · 0 comments
Labels
enhancement New feature or request feedback Ideas Ideas coiming from sessions

Comments

@baubakg
Copy link
Member

baubakg commented May 15, 2024

We should be able to fetch a specific value from the result payload. This is either the result field or a method.

Currently

Call

{
	"callContent": {
		"fetchString1": {
			"class": "com.adobe.campaign.tests.bridge.testdata.one.MimeMessageMethods",
			"method": "createMessage",
			"args": [
				"mre"
			]
		}
	}
}

Result

We get a lot of values:

{
	"callDurations": {
		"fetchString1": 15
	},
	"returnValues": {
		"fetchString1": {
			"messageNumber": 0,
			"size": -1,
			"subject": "a subject by me mre",
			"hashCode": 370140205,
			"isExpunged": false,
			"contentType": "text/plain",
			"content": "a content by yours truely mre",
			"lineCount": -1
		}
	}
}

Expected

We should be able to extract / filter the result to a certain depth

Rationale:

Example: if we want to use the subject in a different call, and there is no getter, and it may be a bit large.

@baubakg baubakg added enhancement New feature or request feedback Ideas Ideas coiming from sessions labels May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feedback Ideas Ideas coiming from sessions
Projects
None yet
Development

No branches or pull requests

1 participant